staging: iio: tsl2x7x: remove unnecessary chip status checks in suspend/resume
authorBrian Masney <masneyb@onstation.org>
Sat, 21 Apr 2018 00:41:45 +0000 (20:41 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:17:59 +0000 (16:17 +0100)
commit0ba50bef8f1a3a7aec1eac838eac2ff879d710a1
tree2d3effaca8e5d054c026b2a162125f24f92850b8
parentd8e24a31cc537f77b56ad21aa048078783907e22
staging: iio: tsl2x7x: remove unnecessary chip status checks in suspend/resume

tsl2x7x_suspend() and tsl2x7x_resume() both check to see what the
current chip status is. These checks are not necessary so this patch
removes those checks.

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