diff options
author | Song Hongyan <hongyan.song@intel.com> | 2016-10-25 04:06:03 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-05 20:47:47 +0300 |
commit | 8af644a7d6846f48d6b72be5d4a3c6eb16bd33c8 (patch) | |
tree | d73fdd89582b3dfe1a2761102f34f55349961bad /drivers/iio | |
parent | d304286abbbe7ed6228a553a56ba054e900907eb (diff) | |
download | linux-8af644a7d6846f48d6b72be5d4a3c6eb16bd33c8.tar.xz |
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: 2b89635e9a9e ("iio: hid_sensor_hub: Common PM functions")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/orientation/hid-sensor-rotation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/orientation/hid-sensor-rotation.c b/drivers/iio/orientation/hid-sensor-rotation.c index b98b9d94d184..a97e802ca523 100644 --- a/drivers/iio/orientation/hid-sensor-rotation.c +++ b/drivers/iio/orientation/hid-sensor-rotation.c @@ -335,6 +335,7 @@ static struct platform_driver hid_dev_rot_platform_driver = { .id_table = hid_dev_rot_ids, .driver = { .name = KBUILD_MODNAME, + .pm = &hid_sensor_pm_ops, }, .probe = hid_dev_rot_probe, .remove = hid_dev_rot_remove, |