Re: [RFC PATCH 1/2] iio: pm_runtime: Introduce PM runtime helper functions

2015-05-18 Thread Daniel Baluta
Adding linux-pm people since Lars suggested that the changes should be in the PM core. I agree, that these changes are not "awfully" IIO specific but no other subsystem uses this pattern for configuration. In fact iio_pm_runtime_setup can be done in many more other ways depending on functionality

Re: [RFC PATCH 1/2] iio: pm_runtime: Introduce PM runtime helper functions

2015-05-18 Thread Peter Meerwald
On Mon, 18 May 2015, Daniel Baluta wrote: > We need this in order to avoid reimplementing the same functions each time > we add PM runtime support in a driver. comments below > Simple grep shows the following users: > * accel/mma9551.c > * accel/mmc9553.c > * accel/kxcjk1013.c

[RFC PATCH 1/2] iio: pm_runtime: Introduce PM runtime helper functions

2015-05-18 Thread Daniel Baluta
We need this in order to avoid reimplementing the same functions each time we add PM runtime support in a driver. Simple grep shows the following users: * accel/mma9551.c * accel/mmc9553.c * accel/kxcjk1013.c * accel/bmc150-accel.c * gyro/bmg160.c *