summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-11-04 14:49:05 +0000
committerLee Jones <lee.jones@linaro.org>2020-11-19 08:34:22 +0000
commit4f2785939fe058455426ebfcbe6f568aec97d8ac (patch)
tree6392c6fae1d8f0f4be01da07d95e155c56518b42
parent9f5b98f3f4149a10c315ddb4d0bed033f398e8ec (diff)
downloadlinux-4f2785939fe058455426ebfcbe6f568aec97d8ac.tar.bz2
mfd: tps65910: Fix a bunch of alignment issues reported-by Checkpatch
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>
-rw-r--r--drivers/mfd/tps65910.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index cbfc6afb3928..ca0b61011def 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -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,