From: Trevor Gamblin Date: Mon, 17 Jun 2024 13:49:46 +0000 (-0400) Subject: iio: adc: axp288_adc: make use of regmap_set_bits() X-Git-Tag: io_uring-6.11-20240722~8^2~42^2~87 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6e195872020b8a34d713db91bb9a9bd4fc7a2ead;p=linux-block.git iio: adc: axp288_adc: make use of regmap_set_bits() Instead of using regmap_update_bits() and passing the mask twice, use regmap_set_bits(). Suggested-by: Uwe Kleine-König Signed-off-by: Trevor Gamblin Acked-by: Uwe Kleine-König Link: https://patch.msgid.link/20240617-review-v3-6-88d1338c4cca@baylibre.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c index 49fff1cabd0d..f135cf2362df 100644 --- a/drivers/iio/adc/axp288_adc.c +++ b/drivers/iio/adc/axp288_adc.c @@ -247,8 +247,8 @@ static int axp288_adc_initialize(struct axp288_adc_info *info) return ret; /* Turn on the ADC for all channels except TS, leave TS as is */ - return regmap_update_bits(info->regmap, AXP20X_ADC_EN1, - AXP288_ADC_EN_MASK, AXP288_ADC_EN_MASK); + return regmap_set_bits(info->regmap, AXP20X_ADC_EN1, + AXP288_ADC_EN_MASK); } static const struct iio_info axp288_adc_iio_info = {