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: apds9960: convert als_int and pxs_int to bool

Since the write_event_config callback now uses a bool for the state
parameter, update type of als_int and pxs_int to bool.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20241031-iio-fix-write-event-config-signature-v2-14-2bcacbb517a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Julien Stephan and committed by
Jonathan Cameron
6921a89d 86b8843e

+2 -2
+2 -2
drivers/iio/light/apds9960.c
··· 133 133 struct regmap_field *reg_enable_pxs; 134 134 135 135 /* state */ 136 - int als_int; 137 - int pxs_int; 136 + bool als_int; 137 + bool pxs_int; 138 138 int gesture_mode_running; 139 139 140 140 /* gain values */