]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: tsl2772: simplify code in write_event_config callback
authorJulien Stephan <jstephan@baylibre.com>
Thu, 31 Oct 2024 15:26:58 +0000 (16:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:43 +0000 (20:33 +0000)
commite41edccbfc34d2fd4f2c52a9159ed4f429d419f5
tree053671b9b44073848b499cace075df01c2644eb6
parent122679a62f2446b44a35aa8b54cb0240e0a5dab0
iio: light: tsl2772: simplify code in write_event_config callback

iio_ev_state_store is actually using kstrtobool to check user
input, then gives the converted boolean value to the write_event_config
callback.

Remove useless code in write_event_config callback.

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