Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: rn5t618-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 <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-16-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Trevor Gamblin and committed by
Jonathan Cameron
cb3f8e0c 550c246d

+2 -3
+2 -3
drivers/iio/adc/rn5t618-adc.c
··· 137 137 138 138 init_completion(&adc->conv_completion); 139 139 /* single conversion */ 140 - ret = regmap_update_bits(adc->rn5t618->regmap, RN5T618_ADCCNT3, 141 - RN5T618_ADCCNT3_GODONE, 142 - RN5T618_ADCCNT3_GODONE); 140 + ret = regmap_set_bits(adc->rn5t618->regmap, RN5T618_ADCCNT3, 141 + RN5T618_ADCCNT3_GODONE); 143 142 if (ret < 0) 144 143 return ret; 145 144