iio: magn: bmc150_magn: do not set power state twice when setting trigger state
authorIrina Tirdea <irina.tirdea@intel.com>
Thu, 23 Jul 2015 17:15:02 +0000 (20:15 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Aug 2015 17:19:57 +0000 (18:19 +0100)
commit5ab744d0d6e7fc90572250239ac796cd79b0ed77
treeca3a9265603b9b7628561ff873eaea47dfda2ff0
parent019cc46d0a5c559bca6c7e949cc277f529a51296
iio: magn: bmc150_magn: do not set power state twice when setting trigger state

When setting the trigger state, the device power state is set through
buffer preenable and postdisable hooks. There is no need
to also set it in the trigger set state call.

Remove duplicate set power state from the trigger set
state call.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/bmc150_magn.c