]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13925): gspca - main: Change the check of the USB video interface.
authorJean-Francois Moine <moinejf@free.fr>
Sun, 10 Jan 2010 19:36:53 +0000 (16:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:32 +0000 (15:10 -0300)
commit4771bd66034a8aaaa75ca761afdf3884d0045bee
tree247f4a4399968c00e3cd9e35dace05a08cf02d9c
parent506e6462917ad2b3f0899a3a54dc0a21f462fc51
V4L/DVB (13925): gspca - main: Change the check of the USB video interface.

Some webcams have many interfaces with the same interface class, so the
previous interface check did not work.
The new code checks if the interface number is zero or the only one.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c