Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Trevor Gamblin and committed by
Jonathan Cameron
feeae7fd 7832023d

+2 -2
+2 -2
drivers/iio/light/st_uvis25_core.c
··· 330 330 struct iio_dev *iio_dev = dev_get_drvdata(dev); 331 331 struct st_uvis25_hw *hw = iio_priv(iio_dev); 332 332 333 - return regmap_update_bits(hw->regmap, ST_UVIS25_REG_CTRL1_ADDR, 334 - ST_UVIS25_REG_ODR_MASK, 0); 333 + return regmap_clear_bits(hw->regmap, ST_UVIS25_REG_CTRL1_ADDR, 334 + ST_UVIS25_REG_ODR_MASK); 335 335 } 336 336 337 337 static int st_uvis25_resume(struct device *dev)