• L
    mfd: tc6387xb: Remove unnecessary braces and correct style warnings · d5ce79ff
    Lee Jones 提交于
    This is part of an effort to clean-up the MFD subsystem.
    
    WARNING: braces {} are not necessary for single statement blocks
    +       if (!iomem) {
    +               return -EINVAL;
    +       }
    
    WARNING: sizeof *tc6387xb should be sizeof(*tc6387xb)
    +       tc6387xb = kzalloc(sizeof *tc6387xb, GFP_KERNEL);
    
    WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...
    +       printk(KERN_INFO "Toshiba tc6387xb initialised\n");
    
    total: 0 errors, 3 warnings, 242 lines checked
    Signed-off-by: NLee Jones <lee.jones@linaro.org>
    d5ce79ff
tc6387xb.c 5.4 KB