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>
This commit is contained in:
Javier Carrasco 2024-09-13 15:18:59 +02:00 committed by Jonathan Cameron
parent 756ffac91c
commit b69f4745db

View File

@ -150,8 +150,8 @@ static int veml6030_als_pwr_on(struct veml6030_data *data)
static int veml6030_als_shut_down(struct veml6030_data *data)
{
return regmap_update_bits(data->regmap, VEML6030_REG_ALS_CONF,
VEML6030_ALS_SD, 1);
return regmap_set_bits(data->regmap, VEML6030_REG_ALS_CONF,
VEML6030_ALS_SD);
}
static void veml6030_als_shut_down_action(void *data)