]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: tsl2583: updated code comment to match what the code does
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:29 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:25 +0000 (13:07 +0000)
commit043c1da79472d7b030a4f7df40e2889e15c979a5
tree2f91f1fda39ab08831a775ac1fa52fd9876504ef
parent2a1e3f074c5dd60b0d0cbd28b95efd4be77a62e7
staging: iio: tsl2583: updated code comment to match what the code does

If channel 0 does not have any data, then the code sets the lux to zero.
The corresponding comment says that the last value is returned. This
updates the comment to correctly reflect what the code does. It also
clarifies the comment about why 0 is returned.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c