V4L/DVB (9871): gspca - vc032x: Bad detection of sensor mi0360.
authorJean-Francois Moine <moinejf@free.fr>
Wed, 10 Dec 2008 08:13:05 +0000 (05:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:00 +0000 (09:39 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/vc032x.c

index b1ab37e12220bdd0d7480d057366202a3303081e..8f553bfbac0bd0fe8c4c673b4facadb6ccfe777a 100644 (file)
@@ -1866,7 +1866,7 @@ static int vc032x_probe_sensor(struct gspca_dev *gspca_dev)
                /* special case for MI0360 */
                if (ptsensor_info->sensorId == SENSOR_MI1310_SOC
                    && value == 0x8243)
-                       return ptsensor_info->sensorId;
+                       return SENSOR_MI0360;
        }
        return -1;
 }