mfd: tps65910: Fix a bunch of alignment issues reported-by Checkpatch
authorLee Jones <lee.jones@linaro.org>
Wed, 4 Nov 2020 14:49:05 +0000 (14:49 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 19 Nov 2020 08:34:22 +0000 (08:34 +0000)
 CHECK: Alignment should match open parenthesis
 #24: FILE: drivers/mfd/tps65910.c:296:
 + ret = regmap_clear_bits(tps65910->regmap, TPS65910_DEVCTRL,
   DEVCTRL_CK32K_CTRL_MASK);

 CHECK: Alignment should match open parenthesis
 #33: FILE: drivers/mfd/tps65910.c:318:
 + ret = regmap_set_bits(tps65910->regmap, TPS65910_DEVCTRL,
   DEVCTRL_DEV_SLP_MASK);

 CHECK: Alignment should match open parenthesis
 #42: FILE: drivers/mfd/tps65910.c:326:
 + ret = regmap_set_bits(tps65910->regmap,
   TPS65910_SLEEP_KEEP_RES_ON,

 CHECK: Alignment should match open parenthesis
 #51: FILE: drivers/mfd/tps65910.c:336:
 + ret = regmap_set_bits(tps65910->regmap,
   TPS65910_SLEEP_KEEP_RES_ON,

 CHECK: Alignment should match open parenthesis
 #60: FILE: drivers/mfd/tps65910.c:346:
 + ret = regmap_set_bits(tps65910->regmap,
   TPS65910_SLEEP_KEEP_RES_ON,

 CHECK: Alignment should match open parenthesis
 #69: FILE: drivers/mfd/tps65910.c:358:
 + regmap_clear_bits(tps65910->regmap, TPS65910_DEVCTRL,
   DEVCTRL_DEV_SLP_MASK);

 CHECK: Alignment should match open parenthesis
 #78: FILE: drivers/mfd/tps65910.c:440:
 + if (regmap_set_bits(tps65910->regmap, TPS65910_DEVCTRL,
   DEVCTRL_PWR_OFF_MASK) < 0)

 CHECK: Alignment should match open parenthesis
 #83: FILE: drivers/mfd/tps65910.c:444:
 + regmap_clear_bits(tps65910->regmap, TPS65910_DEVCTRL,
   DEVCTRL_DEV_ON_MASK);

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65910.c

index cbfc6afb39286501f63458c0eeade8473df65a11..ca0b61011def33fcc075f753ae209de1ba979d3d 100644 (file)
@@ -293,7 +293,7 @@ static int tps65910_ck32k_init(struct tps65910 *tps65910,
                return 0;
 
        ret = regmap_clear_bits(tps65910->regmap, TPS65910_DEVCTRL,
-                                               DEVCTRL_CK32K_CTRL_MASK);
+                               DEVCTRL_CK32K_CTRL_MASK);
        if (ret < 0) {
                dev_err(tps65910->dev, "clear ck32k_ctrl failed: %d\n", ret);
                return ret;
@@ -315,7 +315,7 @@ static int tps65910_sleepinit(struct tps65910 *tps65910,
 
        /* enabling SLEEP device state */
        ret = regmap_set_bits(tps65910->regmap, TPS65910_DEVCTRL,
-                               DEVCTRL_DEV_SLP_MASK);
+                             DEVCTRL_DEV_SLP_MASK);
        if (ret < 0) {
                dev_err(dev, "set dev_slp failed: %d\n", ret);
                goto err_sleep_init;
@@ -323,8 +323,8 @@ static int tps65910_sleepinit(struct tps65910 *tps65910,
 
        if (pmic_pdata->slp_keepon.therm_keepon) {
                ret = regmap_set_bits(tps65910->regmap,
-                               TPS65910_SLEEP_KEEP_RES_ON,
-                               SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK);
+                                     TPS65910_SLEEP_KEEP_RES_ON,
+                                     SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK);
                if (ret < 0) {
                        dev_err(dev, "set therm_keepon failed: %d\n", ret);
                        goto disable_dev_slp;
@@ -333,8 +333,8 @@ static int tps65910_sleepinit(struct tps65910 *tps65910,
 
        if (pmic_pdata->slp_keepon.clkout32k_keepon) {
                ret = regmap_set_bits(tps65910->regmap,
-                               TPS65910_SLEEP_KEEP_RES_ON,
-                               SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK);
+                                     TPS65910_SLEEP_KEEP_RES_ON,
+                                     SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK);
                if (ret < 0) {
                        dev_err(dev, "set clkout32k_keepon failed: %d\n", ret);
                        goto disable_dev_slp;
@@ -343,8 +343,8 @@ static int tps65910_sleepinit(struct tps65910 *tps65910,
 
        if (pmic_pdata->slp_keepon.i2chs_keepon) {
                ret = regmap_set_bits(tps65910->regmap,
-                               TPS65910_SLEEP_KEEP_RES_ON,
-                               SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK);
+                                     TPS65910_SLEEP_KEEP_RES_ON,
+                                     SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK);
                if (ret < 0) {
                        dev_err(dev, "set i2chs_keepon failed: %d\n", ret);
                        goto disable_dev_slp;
@@ -355,7 +355,7 @@ static int tps65910_sleepinit(struct tps65910 *tps65910,
 
 disable_dev_slp:
        regmap_clear_bits(tps65910->regmap, TPS65910_DEVCTRL,
-                               DEVCTRL_DEV_SLP_MASK);
+                         DEVCTRL_DEV_SLP_MASK);
 
 err_sleep_init:
        return ret;
@@ -437,11 +437,11 @@ static void tps65910_power_off(void)
        tps65910 = dev_get_drvdata(&tps65910_i2c_client->dev);
 
        if (regmap_set_bits(tps65910->regmap, TPS65910_DEVCTRL,
-                       DEVCTRL_PWR_OFF_MASK) < 0)
+                           DEVCTRL_PWR_OFF_MASK) < 0)
                return;
 
        regmap_clear_bits(tps65910->regmap, TPS65910_DEVCTRL,
-                       DEVCTRL_DEV_ON_MASK);
+                         DEVCTRL_DEV_ON_MASK);
 }
 
 static int tps65910_i2c_probe(struct i2c_client *i2c,