On 25/10/16 02:06, Song Hongyan wrote: > 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@xxxxxxxxx> Does this completely prevent the driver working or merely make it consume too much power? Only really makes a difference to which route it takes to mainline and how fast it gets there! Jonathan > --- > 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, > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html