V4L/DVB (10029): m5602: remove uneeded test on po1030
authorErik Andrén <erik.andren@gmail.com>
Thu, 27 Nov 2008 16:58:20 +0000 (13:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:58 +0000 (09:39 -0200)
The po1030 never sends long i2c messages, no need to test for that in
the init phase.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_po1030.c

index 6ec4d2c6315c365ca2611e0440500903c8f713ff..f9932a16fbd783cdf2a145c10571b3befd928877 100644 (file)
@@ -87,12 +87,6 @@ int po1030_init(struct sd *sd)
                                init_po1030[i][1], data, 1);
                        break;
 
-               case SENSOR_LONG:
-                       data[0] = init_po1030[i][2];
-                       data[1] = init_po1030[i][3];
-                       err = m5602_write_sensor(sd,
-                               init_po1030[i][1], data, 2);
-                       break;
                default:
                        info("Invalid stream command, exiting init");
                        return -EINVAL;