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_set_bits()

Instead of using regmap_update_bits() and passing
val == 1 == VEML6030_ALS_SD, use regmap_set_bits().

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240913-veml6035-v1-4-0b09c0c90418@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Javier Carrasco and committed by
Jonathan Cameron
b69f4745 756ffac9

+2 -2
+2 -2
drivers/iio/light/veml6030.c
··· 150 150 151 151 static int veml6030_als_shut_down(struct veml6030_data *data) 152 152 { 153 - return regmap_update_bits(data->regmap, VEML6030_REG_ALS_CONF, 154 - VEML6030_ALS_SD, 1); 153 + return regmap_set_bits(data->regmap, VEML6030_REG_ALS_CONF, 154 + VEML6030_ALS_SD); 155 155 } 156 156 157 157 static void veml6030_als_shut_down_action(void *data)