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: temperature: mlx90632: 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>
Acked-by: Crt Mori <cmo@melexis.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-40-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Trevor Gamblin and committed by
Jonathan Cameron
ac403e8c 9ba22652

+2 -2
+2 -2
drivers/iio/temperature/mlx90632.c
··· 334 334 unsigned int reg_status; 335 335 int ret; 336 336 337 - ret = regmap_update_bits(data->regmap, MLX90632_REG_STATUS, 338 - MLX90632_STAT_DATA_RDY, 0); 337 + ret = regmap_clear_bits(data->regmap, MLX90632_REG_STATUS, 338 + MLX90632_STAT_DATA_RDY); 339 339 if (ret < 0) 340 340 return ret; 341 341