iio: light: apds9306: Improve apds9306_write_event_config()
authorSubhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Fri, 5 Apr 2024 10:46:41 +0000 (21:16 +1030)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 6 Apr 2024 15:52:45 +0000 (16:52 +0100)
commit85795d3eddeb5f0e3e11caad24cc78f6c43d7fd1
treea33262c9b49639e4960b1e74ae08f9f848713d79
parent47ef0501a9cc25c88dcac2b57ed3bab4da53f3d5
iio: light: apds9306: Improve apds9306_write_event_config()

Simplify event configuration flow.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Link: https://lore.kernel.org/all/20240310124237.52fa8a56@jic23-huawei/
Signed-off-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Link: https://lore.kernel.org/r/20240405104641.29478-1-subhajit.ghosh@tweaklogic.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/apds9306.c