diff options
-rw-r--r-- | drivers/mfd/tps65910.c | 22 |
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, |