linux/drivers/media
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
..
cec media fixes for v4.14-rc6 2017-10-17 06:23:09 -04:00
common [media] v4l2-tpg: add Y10 and Y12 support 2017-10-04 16:58:39 -03:00
dvb-core Merge commit '3728e6a255b5' into patchwork 2017-10-17 17:22:20 -07:00
dvb-frontends media: dvb_frontend: get rid of get_property() callback 2017-10-11 12:51:36 -04:00
firewire
i2c media: smiapp: Rely on runtime PM 2017-10-24 17:14:25 +02:00
mmc
pci media: dvb_demux: dvb_demux_feed.pusi_seen is boolean 2017-10-11 13:10:59 -04:00
platform Merge commit '3728e6a255b5' into patchwork 2017-10-17 17:22:20 -07:00
radio media: fix media Kconfig help syntax issues 2017-09-23 14:59:24 -04:00
rc Merge commit '3728e6a255b5' into patchwork 2017-10-17 17:22:20 -07:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: dvb: i2c transfers over usb cannot be done from stack 2017-09-23 07:21:33 -04:00
usb media: friio-fe: get rid of set_property() 2017-10-11 12:49:55 -04:00
v4l2-core [media] v4l2-ctrls.c: allow empty control handlers 2017-10-04 17:05:00 -03:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00