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

authored by

Trevor Gamblin and committed by
Jonathan Cameron
9ff43d28 1131f1e7

+2 -2
+2 -2
drivers/iio/light/iqs621-als.c
··· 86 86 if (iqs621_als->prox_en) 87 87 event_mask |= iqs62x->dev_desc->ir_mask; 88 88 89 - return regmap_update_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, 90 - event_mask, 0); 89 + return regmap_clear_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, 90 + event_mask); 91 91 } 92 92 93 93 static int iqs621_als_notifier(struct notifier_block *notifier,