]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] pwc: Move various initialization to driver load and / or stream start
authorHans de Goede <hdegoede@redhat.com>
Sun, 26 Jun 2011 09:49:59 +0000 (06:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 21:47:38 +0000 (18:47 -0300)
commit5afa0619be38f4554320b93953217edc71d7dc29
tree7de42b83dbc6f9a7a1ef6d72270539b3b2707ab0
parent343763565b9cc0bc4c4809070cdab3f7c2ae4604
[media] pwc: Move various initialization to driver load and / or stream start

Doing a bunch of initialization every time /dev/video is opened, and thus
for example when the udev rules probe for capabilities makes no sense,
do it at driver load, resp. stream start instead.

This is a preparation patch for allowing multiple opens of the /dev/video
node.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-ctrl.c
drivers/media/video/pwc/pwc-dec1.c
drivers/media/video/pwc/pwc-dec1.h
drivers/media/video/pwc/pwc-dec23.c
drivers/media/video/pwc/pwc-dec23.h
drivers/media/video/pwc/pwc-if.c
drivers/media/video/pwc/pwc.h