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

authored by

Trevor Gamblin and committed by
Jonathan Cameron
04f16857 9d0142fc

+2 -3
+2 -3
drivers/iio/health/max30100.c
··· 363 363 int ret; 364 364 365 365 /* start acquisition */ 366 - ret = regmap_update_bits(data->regmap, MAX30100_REG_MODE_CONFIG, 367 - MAX30100_REG_MODE_CONFIG_TEMP_EN, 368 - MAX30100_REG_MODE_CONFIG_TEMP_EN); 366 + ret = regmap_set_bits(data->regmap, MAX30100_REG_MODE_CONFIG, 367 + MAX30100_REG_MODE_CONFIG_TEMP_EN); 369 368 if (ret) 370 369 return ret; 371 370