linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: orientation: hid-sensor-rotation: Add PM function
@ 2016-10-25  1:06 Song Hongyan
  2016-10-30 16:22 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Song Hongyan @ 2016-10-25  1:06 UTC (permalink / raw)
  To: linux-iio; +Cc: srinivas.pandruvada, Song Hongyan

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

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
---
 drivers/iio/orientation/hid-sensor-rotation.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/orientation/hid-sensor-rotation.c b/drivers/iio/orientation/hid-sensor-rotation.c
index b98b9d9..a97e802c 100644
--- a/drivers/iio/orientation/hid-sensor-rotation.c
+++ b/drivers/iio/orientation/hid-sensor-rotation.c
@@ -335,6 +335,7 @@ static int hid_dev_rot_remove(struct platform_device *pdev)
 	.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,
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-05 17:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-25  1:06 [PATCH] iio: orientation: hid-sensor-rotation: Add PM function Song Hongyan
2016-10-30 16:22 ` Jonathan Cameron
2016-10-31  0:32   ` Pandruvada, Srinivas
2016-11-05 17:49     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).