iio: proximity: irsd200: simplify code in write_event_config callback
authorJulien Stephan <jstephan@baylibre.com>
Thu, 31 Oct 2024 15:26:59 +0000 (16:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:43 +0000 (20:33 +0000)
commit63023e8aa3e8353d9bd2302196bbd9da5d8d0bef
treed33d3e3b93227e3662718509e00174360c0df6a2
parente41edccbfc34d2fd4f2c52a9159ed4f429d419f5
iio: proximity: irsd200: 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-4-2bcacbb517a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/irsd200.c