Skip to content

Commit

Permalink
V4L/DVB (10029): m5602: remove uneeded test on po1030
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Erik Andrén authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 83fdea2 commit 48223c8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/media/video/gspca/m5602/m5602_po1030.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48223c8

Please sign in to comment.