mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
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:
parent
756ffac91c
commit
b69f4745db
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user