]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: noa1305: Simplify noa1305_read_raw()
authorMarek Vasut <marex@denx.de>
Mon, 15 Jul 2024 18:28:55 +0000 (20:28 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:38 +0000 (10:13 +0100)
commit0cef1c3232e7b4e584e1f098f0eac63525128e59
tree6ac6d0684b0726edfab1a2b5398c24fed6b60ca5
parentd5cbe1502043124ff8af8136b80f93758c4a61e0
iio: light: noa1305: Simplify noa1305_read_raw()

The only channel this hardware supports is IIO_LIGHT, if the channel
is anything else, exit right away. The 'ret' variable is now always
only assigned by noa1305_measure(), do not initialize it anymore.
Update function parameter indent. No functional change.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://patch.msgid.link/20240715183120.143417-1-marex@denx.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/noa1305.c