]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: separate sensor detection and initialization/configuration
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Wed, 27 Mar 2013 20:06:29 +0000 (17:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 29 Mar 2013 09:34:01 +0000 (06:34 -0300)
commit513142f529c89888c7793b4a6be8e1c2e1070b5d
treef73b195e399b2ac5ba28ff769cf5efc9675729fb
parent60a65e8e43606ae91dccf47bc8100941c601980e
[media] em28xx: separate sensor detection and initialization/configuration

Sensor detection and initialization/configuration are currently mixed together.
This works as long as all devices with a particular sensor are working with the
same board configuration. In the long run, this will be not sufficient, so
separate these both steps to make the code more flexible and future proof.
This also makes the code more consistent, because the initialization of the
MT9V011 sensor subdevice is already separated.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c