linux-stable/drivers/media/i2c/smiapp
Sakari Ailus 6771fce506 media: smiapp: Rely on runtime PM
Instead of relying on a mix of runtime PM and the s_power() callback, drop
the s_power() callback altogether and use runtime PM solely.

As device access is required during device power-on and power-off
sequences, runtime PM alone cannot tell whether the device is available.
Thus the "active" field is introduced in struct smiapp_sensor to tell
whether it is safe to write to the device.

Consequently there is no need to power on the device whenever a file
handle is open. This functionality is removed as well. The user may still
control the device power management through sysfs. Autosuspend remains
enabled, with 1 s delay.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2017-10-24 17:14:25 +02:00
..
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile
smiapp-core.c media: smiapp: Rely on runtime PM 2017-10-24 17:14:25 +02:00
smiapp-limits.c [media] smiapp: Remove FSF's address from the license header 2014-12-23 11:27:47 -02:00
smiapp-limits.h [media] smiapp: Remove FSF's address from the license header 2014-12-23 11:27:47 -02:00
smiapp-quirk.c media: smiapp: make various const arrays static 2017-07-19 15:53:14 -04:00
smiapp-quirk.h [media] smiapp: Add parentheses to macro arguments used in macros 2014-12-23 11:51:30 -02:00
smiapp-reg-defs.h [media] smiapp: Remove FSF's address from the license header 2014-12-23 11:27:47 -02:00
smiapp-reg.h [media] smiapp: Remove FSF's address from the license header 2014-12-23 11:27:47 -02:00
smiapp-regs.c media: smiapp: Rely on runtime PM 2017-10-24 17:14:25 +02:00
smiapp-regs.h [media] smiapp: Remove FSF's address from the license header 2014-12-23 11:27:47 -02:00
smiapp.h media: smiapp: Rely on runtime PM 2017-10-24 17:14:25 +02:00