iio: light: ltr390: simplify code in write_event_config callback
authorJulien Stephan <jstephan@baylibre.com>
Thu, 31 Oct 2024 15:26:56 +0000 (16:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:43 +0000 (20:33 +0000)
commit04392fa8af5ae770469abb7c032109ce33075ce1
tree8db2256fae2d532cc2058fc3372762d80d331522
parent596ef5cf654b7c8cbdbb42f890063f868357acac
iio: light: ltr390: 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-1-2bcacbb517a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/ltr390.c