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

Configure Feed

Select the types of activity you want to include in your feed.

iio: proximity: sx9324: 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-36-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Trevor Gamblin and committed by
Jonathan Cameron
f931cab7 c470071e

+2 -3
+2 -3
drivers/iio/proximity/sx9324.c
··· 835 835 int ret; 836 836 837 837 /* run the compensation phase on all channels */ 838 - ret = regmap_update_bits(data->regmap, SX9324_REG_STAT2, 839 - SX9324_REG_STAT2_COMPSTAT_MASK, 840 - SX9324_REG_STAT2_COMPSTAT_MASK); 838 + ret = regmap_set_bits(data->regmap, SX9324_REG_STAT2, 839 + SX9324_REG_STAT2_COMPSTAT_MASK); 841 840 if (ret) 842 841 return ret; 843 842