]> git.baikalelectronics.ru Git - kernel.git/commit
iio: hid-sensors: Get feature report from sensor hub after changing power state
authorArchana Patni <archana.patni@linux.intel.com>
Mon, 19 May 2014 11:19:00 +0000 (12:19 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 29 May 2014 16:38:33 +0000 (17:38 +0100)
commit169d6afbe4a42319499ee02bd9479a3f17636611
treef5d23996911c2936a6aad085f46a6e90c9bb2784
parentd3be6216bd7bc436c07a9b52516a38bebd6ed312
iio: hid-sensors: Get feature report from sensor hub after changing power state

Some sensor hubs require a get feature report call to be issued soon after
changing the power state of the sensor. Without this, the sensor remains in
the current state. This patch adds a call soon after the power state.

This is retained as a generic call across all sensor hubs since the behavior
has been noticed on more than one implementation.

Signed-off-by: Archana Patni <archana.patni@intel.com>
Signed-off-by: Subramony Sesha <subramony.sesha@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-trigger.c