]> git.baikalelectronics.ru Git - kernel.git/commit
iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)
authorSong Hongyan <hongyan.song@intel.com>
Tue, 25 Oct 2016 01:06:03 +0000 (01:06 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Nov 2016 17:47:47 +0000 (17:47 +0000)
commit747d849b47ae0b2e6effd0eb7d63f9f64a06410f
treed73fdd89582b3dfe1a2761102f34f55349961bad
parent4819219ce3e31a2cf2dfe755779b9c15e7bfc530
iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)

This fix makes newer ISH hubs work. Previous ones worked by lucky
coincidence.

Rotation sensor function does not work due to miss PM function.
Add common hid sensor iio pm function for rotation sensor.

Further clarification from Srinivas:

If CONFIG_PM is not defined, then this prevents this sensor to
function. So above commit caused this.

This sensor was supposed to be always on to trigger wake up in prior
external hubs. But with the new ISH hub this is not the case.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Fixes: 0a93b30f2b4b ("iio: hid_sensor_hub: Common PM functions")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/orientation/hid-sensor-rotation.c