projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d30864
)
iio: accel: sca3000: use bool for event state
author
Julien Stephan
<jstephan@baylibre.com>
Thu, 31 Oct 2024 15:27:04 +0000
(16:27 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:44 +0000
(20:33 +0000)
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>
drivers/iio/accel/sca3000.c
patch
|
blob
|
history
diff --git
a/drivers/iio/accel/sca3000.c
b/drivers/iio/accel/sca3000.c
index
36cbfcb
..
3fb0f38
100644
(file)
--- a/
drivers/iio/accel/sca3000.c
+++ b/
drivers/iio/accel/sca3000.c
@@
-1158,7
+1158,7
@@
error_ret:
return ret;
}
-static int sca3000_freefall_set_state(struct iio_dev *indio_dev,
int
state)
+static int sca3000_freefall_set_state(struct iio_dev *indio_dev,
bool
state)
{
struct sca3000_state *st = iio_priv(indio_dev);
int ret;
@@
-1181,7
+1181,7
@@
static int sca3000_freefall_set_state(struct iio_dev *indio_dev, int state)
}
static int sca3000_motion_detect_set_state(struct iio_dev *indio_dev, int axis,
-
int
state)
+
bool
state)
{
struct sca3000_state *st = iio_priv(indio_dev);
int ret, ctrlval;