]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regulator: max77686: Fix checkpatch warnings
authorAxel Lin <axel.lin@gmail.com>
Mon, 4 Jun 2012 02:19:18 +0000 (10:19 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jun 2012 10:28:21 +0000 (11:28 +0100)
Fix below checkpatch warnings:

$ scripts/checkpatch.pl -f drivers/regulator/max77686.c
ERROR: return is not a function, parentheses are not required
+       return (DIV_ROUND_UP(rdev->desc->uV_step

WARNING: line over 80 characters
+       .ops            = &max77686_buck_dvs_ops,                               \

total: 1 errors, 1 warnings, 339 lines checked

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max77686.c

index 4e9f4f3f062b2107a0e5cb81eceab290faec1913..b76a0389d0b8d4f7a8f160581d90f5c7a8b30675 100644 (file)
@@ -75,17 +75,18 @@ static int max77686_set_dvs_voltage_time_sel(struct regulator_dev *rdev,
 {
        struct max77686_data *max77686 = rdev_get_drvdata(rdev);
        int ramp_rate[] = {13, 27, 55, 100};
-       return (DIV_ROUND_UP(rdev->desc->uV_step
-                       * abs(new_selector - old_selector),
-                       ramp_rate[max77686->ramp_delay]));
+
+       return DIV_ROUND_UP(rdev->desc->uV_step *
+                           abs(new_selector - old_selector),
+                           ramp_rate[max77686->ramp_delay]);
 }
 
 static int max77686_set_voltage_time_sel(struct regulator_dev *rdev,
                        unsigned int old_selector, unsigned int new_selector)
 {
        /* Unconditionally 100 mV/us */
-       return (DIV_ROUND_UP(rdev->desc->uV_step
-                * abs(new_selector - old_selector), 100));
+       return DIV_ROUND_UP(rdev->desc->uV_step *
+                           abs(new_selector - old_selector), 100);
 }
 
 static struct regulator_ops max77686_ops = {
@@ -171,7 +172,7 @@ static struct regulator_ops max77686_buck_dvs_ops = {
 #define regulator_desc_buck_dvs(num)           {                       \
        .name           = "BUCK"#num,                                   \
        .id             = MAX77686_BUCK##num,                           \
-       .ops            = &max77686_buck_dvs_ops,                               \
+       .ops            = &max77686_buck_dvs_ops,                       \
        .type           = REGULATOR_VOLTAGE,                            \
        .owner          = THIS_MODULE,                                  \
        .min_uV         = MAX77686_DVS_MINUV,                           \