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: imu: st_lsm6dsx: use bool for event state

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

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

authored by

Julien Stephan and committed by
Jonathan Cameron
3121da85 96a59e30

+1 -1
+1 -1
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
··· 1865 1865 return err; 1866 1866 } 1867 1867 1868 - static int st_lsm6dsx_event_setup(struct st_lsm6dsx_hw *hw, int state) 1868 + static int st_lsm6dsx_event_setup(struct st_lsm6dsx_hw *hw, bool state) 1869 1869 { 1870 1870 const struct st_lsm6dsx_reg *reg; 1871 1871 unsigned int data;