]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7276): soc-camera: deactivate cameras when not used
authorGuennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Tue, 22 Apr 2008 17:45:32 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:46 +0000 (14:07 -0300)
commit41da0dab2847d40a0c0cbd2f13279f1b8bb355aa
tree8b0912f884f3613922f2bba2198d6b8fc3f95691
parentfad16e8b98eb9311a52d062cc658540b97cae5fe
V4L/DVB (7276): soc-camera: deactivate cameras when not used

Only attach cameras to the host interface for probing, then detach until
open. This allows platforms with several cameras on an interface,
physically supporting only one camera, to handle multiple cameras and
activate them selectively after initial probing. The first attach during
probe is needed to activate the host interface to be able to physically
communicate with cameras.

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