]> git.baikalelectronics.ru Git - kernel.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)
commit68c7fc04fe2fae847270f0dc6f7a5078bf8793c1
tree2f91f1fda39ab08831a775ac1fa52fd9876504ef
parent0dd594588fc21f02beb92da88b9ec37df0dcb8d0
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