staging: iio: tsl2x7x: remove unnecessary code
authorBrian Masney <masneyb@onstation.org>
Wed, 21 Mar 2018 10:29:02 +0000 (06:29 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Mar 2018 13:31:40 +0000 (13:31 +0000)
commitc7bd25e8e23c934d8ad420ea93a508edf1588905
tree91b680b6702e70f236e5d141b42c6003fd08b805
parent8ea0fa7cd425448e24da38dfe4ea78d3aa69b48c
staging: iio: tsl2x7x: remove unnecessary code

As a follow up to the work in commit a0722d05a195 ("staging: iio:
tsl2x7x: convert mutex_trylock() to mutex_lock()"), this patch removes
the unnecessary calls to tsl2x7x_get_prox() and tsl2x7x_get_lux() in
tsl2x7x_event_handler(). Previously, these functions were locked with
mutex_trylock(), but that is no longer the case. This patch also removes
a comment that is no longer relevant about returning the last sample.

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