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

authored by

Trevor Gamblin and committed by
Jonathan Cameron
51373588 04f16857

+2 -3
+2 -3
drivers/iio/health/max30102.c
··· 448 448 } 449 449 450 450 /* start acquisition */ 451 - ret = regmap_update_bits(data->regmap, MAX30102_REG_TEMP_CONFIG, 452 - MAX30102_REG_TEMP_CONFIG_TEMP_EN, 453 - MAX30102_REG_TEMP_CONFIG_TEMP_EN); 451 + ret = regmap_set_bits(data->regmap, MAX30102_REG_TEMP_CONFIG, 452 + MAX30102_REG_TEMP_CONFIG_TEMP_EN); 454 453 if (ret) 455 454 goto out; 456 455