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

authored by

Trevor Gamblin and committed by
Jonathan Cameron
7832023d 9ff43d28

+3 -3
+3 -3
drivers/iio/light/isl29018.c
··· 550 550 return -ENODEV; 551 551 552 552 /* Clear brownout bit */ 553 - status = regmap_update_bits(chip->regmap, 554 - ISL29035_REG_DEVICE_ID, 555 - ISL29035_BOUT_MASK, 0); 553 + status = regmap_clear_bits(chip->regmap, 554 + ISL29035_REG_DEVICE_ID, 555 + ISL29035_BOUT_MASK); 556 556 if (status < 0) 557 557 return status; 558 558 }