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: sx9360: 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-37-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Trevor Gamblin and committed by
Jonathan Cameron
3b8ec239 f931cab7

+2 -3
+2 -3
drivers/iio/proximity/sx9360.c
··· 672 672 int ret; 673 673 674 674 /* run the compensation phase on all channels */ 675 - ret = regmap_update_bits(data->regmap, SX9360_REG_STAT, 676 - SX9360_REG_STAT_COMPSTAT_MASK, 677 - SX9360_REG_STAT_COMPSTAT_MASK); 675 + ret = regmap_set_bits(data->regmap, SX9360_REG_STAT, 676 + SX9360_REG_STAT_COMPSTAT_MASK); 678 677 if (ret) 679 678 return ret; 680 679