iio: accel: mma9551: use bool for event state
authorJulien Stephan <jstephan@baylibre.com>
Thu, 31 Oct 2024 15:27:03 +0000 (16:27 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:44 +0000 (20:33 +0000)
commit1d3086459da392ac80889133e9549fa7e041b9f1
treee6189bb430c2a0099c4e949e4876729b4d022d25
parentb4b42f28a0df6b9d31f0003f7dea3bddf272eaa4
iio: accel: mma9551: 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,
and use a bool array for event_enabled.

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