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: accel: sca3000: use bool for event state

Since the write_event_config callback now uses a bool for the state
parameter, update the signatures of the functions it calls accordingly.

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

authored by

Julien Stephan and committed by
Jonathan Cameron
48809782 1d308645

+2 -2
+2 -2
drivers/iio/accel/sca3000.c
··· 1158 1158 return ret; 1159 1159 } 1160 1160 1161 - static int sca3000_freefall_set_state(struct iio_dev *indio_dev, int state) 1161 + static int sca3000_freefall_set_state(struct iio_dev *indio_dev, bool state) 1162 1162 { 1163 1163 struct sca3000_state *st = iio_priv(indio_dev); 1164 1164 int ret; ··· 1181 1181 } 1182 1182 1183 1183 static int sca3000_motion_detect_set_state(struct iio_dev *indio_dev, int axis, 1184 - int state) 1184 + bool state) 1185 1185 { 1186 1186 struct sca3000_state *st = iio_priv(indio_dev); 1187 1187 int ret, ctrlval;