iio: light: st_uvis25_core: 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> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20240617-review-v3-31-88d1338c4cca@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
7832023d66
commit
feeae7fd1a
@@ -330,8 +330,8 @@ static int st_uvis25_suspend(struct device *dev)
|
||||
struct iio_dev *iio_dev = dev_get_drvdata(dev);
|
||||
struct st_uvis25_hw *hw = iio_priv(iio_dev);
|
||||
|
||||
return regmap_update_bits(hw->regmap, ST_UVIS25_REG_CTRL1_ADDR,
|
||||
ST_UVIS25_REG_ODR_MASK, 0);
|
||||
return regmap_clear_bits(hw->regmap, ST_UVIS25_REG_CTRL1_ADDR,
|
||||
ST_UVIS25_REG_ODR_MASK);
|
||||
}
|
||||
|
||||
static int st_uvis25_resume(struct device *dev)
|
||||
|
||||
Reference in New Issue
Block a user