staging: iio: tsl2x7x: remove ch0 and ch1 variables from tsl2x7x_get_lux()
authorBrian Masney <masneyb@onstation.org>
Wed, 21 Mar 2018 10:29:10 +0000 (06:29 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Mar 2018 13:43:04 +0000 (13:43 +0000)
commit2130e243c4ac54a59a8c54d19a4a21c1a22a81b4
treeac5c9780a3bcacd09b12b55edd5ec540b8341e0e
parent96e6a016d74513c9b59c9623e1325c7252106878
staging: iio: tsl2x7x: remove ch0 and ch1 variables from tsl2x7x_get_lux()

Remove the ch0 and ch1 variables from tsl2x7x_get_lux() and
write those values directly into the chip->als_cur_info.als_ch0
and chip->als_cur_info.als_ch01 variables.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c