summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/bmg160_core.c
diff options
context:
space:
mode:
authorJulien Stephan <jstephan@baylibre.com>2024-10-31 16:27:01 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-03 21:33:43 +0100
commit2cc86e9409addbce898f3c40239195d914d1c168 (patch)
tree9d8485a518a3ebd05bc439414ae9d074ed4d2e79 /drivers/iio/gyro/bmg160_core.c
parentiio: proximity: sx9500: simplify code in write_event_config callback (diff)
downloadlinux-2cc86e9409addbce898f3c40239195d914d1c168.tar.xz
linux-2cc86e9409addbce898f3c40239195d914d1c168.zip
iio: light: adux1020: write_event_config: use local variable for interrupt value
state parameter is currently an int, but it is actually a boolean. iio_ev_state_store is actually using kstrtobool to check user input, then gives the converted boolean value to write_event_config. The code in adux1020_write_event_config re-uses state parameter to store an integer value. To prepare for updating the write_event_config signature to use a boolean for state, introduce a new local int variable. Signed-off-by: Julien Stephan <jstephan@baylibre.com> Link: https://patch.msgid.link/20241031-iio-fix-write-event-config-signature-v2-6-2bcacbb517a2@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro/bmg160_core.c')
0 files changed, 0 insertions, 0 deletions