iio: accel: kxsd9: Make use of regmap_clear_bits()
Instead of using regmap_update_bits() and passing val = 0, use regmap_clear_bits(). Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20240617-review-v3-2-88d1338c4cca@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
1b3d0fc286
commit
41aea49053
@ -370,10 +370,7 @@ static int kxsd9_power_down(struct kxsd9_state *st)
|
||||
* make sure we conserve power even if there are others users on the
|
||||
* regulators.
|
||||
*/
|
||||
ret = regmap_update_bits(st->map,
|
||||
KXSD9_REG_CTRL_B,
|
||||
KXSD9_CTRL_B_ENABLE,
|
||||
0);
|
||||
ret = regmap_clear_bits(st->map, KXSD9_REG_CTRL_B, KXSD9_CTRL_B_ENABLE);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user