V4L/DVB: soc-camera: add runtime pm support for subdevices
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:46:09 +0000 (00:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:46:09 +0000 (00:46 -0300)
commit4f9fb5ed020324d6c151db34460df572b0fdc491
treed91ab3117e89c674f2f1bcc897a1b86d6c761154
parente26b31449142a18512b57dbea515af234992ba7c
V4L/DVB: soc-camera: add runtime pm support for subdevices

To save power soc-camera powers subdevices down, when they are not in use,
if this is supported by the platform. However, the V4L standard dictates,
that video nodes shall preserve configuration between uses. This requires
runtime power management, which is implemented by this patch. It allows
subdevice drivers to specify their runtime power-management methods, by
assigning a type to the video device.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c
include/media/soc_camera.h