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>
This commit is contained in:
Trevor Gamblin 2024-06-17 09:50:20 -04:00 committed by Jonathan Cameron
parent 9ba22652b6
commit ac403e8ca2

View File

@ -334,8 +334,8 @@ static int mlx90632_perform_measurement(struct mlx90632_data *data)
unsigned int reg_status; unsigned int reg_status;
int ret; int ret;
ret = regmap_update_bits(data->regmap, MLX90632_REG_STATUS, ret = regmap_clear_bits(data->regmap, MLX90632_REG_STATUS,
MLX90632_STAT_DATA_RDY, 0); MLX90632_STAT_DATA_RDY);
if (ret < 0) if (ret < 0)
return ret; return ret;