diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-06-17 09:50:12 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-25 21:04:47 +0100 |
commit | df4083d3888a6f09ac5a0f47215ce45f5e59cc19 (patch) | |
tree | 0edd9c911bb6275dd87ff0791a641bdf0727fdb7 /drivers/iio | |
parent | feeae7fd1a96660cafbe2752d1d6286ea6b94240 (diff) | |
download | lwn-df4083d3888a6f09ac5a0f47215ce45f5e59cc19.tar.gz lwn-df4083d3888a6f09ac5a0f47215ce45f5e59cc19.zip |
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/light/veml6030.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/veml6030.c b/drivers/iio/light/veml6030.c index 4be151308574..2e86d310952e 100644 --- a/drivers/iio/light/veml6030.c +++ b/drivers/iio/light/veml6030.c @@ -144,8 +144,8 @@ static const struct attribute_group veml6030_event_attr_group = { static int veml6030_als_pwr_on(struct veml6030_data *data) { - return regmap_update_bits(data->regmap, VEML6030_REG_ALS_CONF, - VEML6030_ALS_SD, 0); + return regmap_clear_bits(data->regmap, VEML6030_REG_ALS_CONF, + VEML6030_ALS_SD); } static int veml6030_als_shut_down(struct veml6030_data *data) |