Commit 4fc8b648 authored by Marton Nemeth's avatar Marton Nemeth Committed by Mauro Carvalho Chehab

V4L/DVB (13120): gspca - pac7311: remove redundant register page switching

Remove redundant register page switching to page 0 when changing the
color control.
Signed-off-by: default avatarMarton Nemeth <nm127@freemail.hu>
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 24067bb5
...@@ -579,7 +579,6 @@ static void setcolors(struct gspca_dev *gspca_dev) ...@@ -579,7 +579,6 @@ static void setcolors(struct gspca_dev *gspca_dev)
reg_w(gspca_dev, 0xff, 0x03); /* page 3 */ reg_w(gspca_dev, 0xff, 0x03); /* page 3 */
reg_w(gspca_dev, 0x11, 0x01); reg_w(gspca_dev, 0x11, 0x01);
reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ reg_w(gspca_dev, 0xff, 0x00); /* page 0 */
reg_w(gspca_dev, 0xff, 0x00); /* page 0 */
for (i = 0; i < 9; i++) { for (i = 0; i < 9; i++) {
v = a[i] * sd->colors / COLOR_MAX + b[i]; v = a[i] * sd->colors / COLOR_MAX + b[i];
reg_w(gspca_dev, 0x0f + 2 * i, (v >> 8) & 0x07); reg_w(gspca_dev, 0x0f + 2 * i, (v >> 8) & 0x07);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment