[media] gspca: Check dev->actconfig rather than dev->config
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Jan 2012 20:20:14 +0000 (17:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 11:04:17 +0000 (09:04 -0200)
commit5dae603d84ff5b6b24186b521f4353b3860b11e2
tree6bd98d21a98c06742865d2ee59bcaefd00c12749
parent1153f04dea315a95e14ef5376737f7fbe18282c3
[media] gspca: Check dev->actconfig rather than dev->config

Check dev->actconfig rather than dev->config when checking various
configuration things. dev->config points to the array of configs for the
device so dev->config->foo boils down to dev->config[0].foo and the first
config is not necessarily always the active config.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c
drivers/media/video/gspca/stv06xx/stv06xx.c
drivers/media/video/gspca/xirlink_cit.c