]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: tsl2583: remove unnecessary chip status checks in suspend/resume
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:18 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:18 +0000 (13:07 +0000)
commit2ff8a35bd79e5a67137f6201b7d44515f19cf726
tree8f8c9ab8c7b2a98153a13448467575a36c7f2532
parent6a77e3f65130ad0fbc9b305e93efca59202b3626
staging: iio: tsl2583: remove unnecessary chip status checks in suspend/resume

The device probing and the suspend/resume code checks a flag internal to
the driver that determines whether or not the chip is in a working
state. These checks are not needed. This patch removes the unnecessary
checks. It will do no harm to the hardware if the chip is
reinitialized if it is already powered on.

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