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: veml6030: 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-32-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Trevor Gamblin and committed by
Jonathan Cameron
df4083d3 feeae7fd

+2 -2
+2 -2
drivers/iio/light/veml6030.c
··· 144 144 145 145 static int veml6030_als_pwr_on(struct veml6030_data *data) 146 146 { 147 - return regmap_update_bits(data->regmap, VEML6030_REG_ALS_CONF, 148 - VEML6030_ALS_SD, 0); 147 + return regmap_clear_bits(data->regmap, VEML6030_REG_ALS_CONF, 148 + VEML6030_ALS_SD); 149 149 } 150 150 151 151 static int veml6030_als_shut_down(struct veml6030_data *data)