]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09dce20632144b20ae2a7dcaf375cea06a375761
treed91ab3117e89c674f2f1bcc897a1b86d6c761154
parent9db7c4c427dee87935041b711f742c26d5e96b01
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