[media] sh-mobile-ceu-camera: move interface activation and deactivation to clock...
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 4 Apr 2013 15:54:20 +0000 (12:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 18:46:13 +0000 (15:46 -0300)
commit0ff6a6e8fb6915e68b93ff169b1eb66c0ba15d56
tree07f1324c9da59b4dc7b41c3c30d2af2500e6fad9
parentd71042c1fa1c3b32bfd55151eef6b2e104301a11
[media] sh-mobile-ceu-camera: move interface activation and deactivation to clock callbacks

When adding and removing a client, the sh-mobile-ceu-camera driver activates
and, respectively, deactivates its camera interface and, if necessary, the
CSI2 controller. Only handling of the CSI2 interface is client-specific and
is only needed, when a data-exchange with the client is taking place. Move
the rest to .clock_start() and .clock_stop() callbacks.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c