Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181587
b: refs/heads/master
c: 23a5de2
h: refs/heads/master
i:
  181585: d0a2213
  181583: c1983a0
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent b85841b commit b1748d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9919fe891da1bd61fad78a0e1e3c0f21cd127eca
refs/heads/master: 23a5de202bc385b69eb91a5db36699e9579ec03e
10 changes: 2 additions & 8 deletions trunk/drivers/media/video/gspca/pac7302.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ static const struct v4l2_pix_format vga_mode[] = {
};

#define LOAD_PAGE3 255
#define LOAD_PAGE4 254
#define END_OF_SEQUENCE 0

/* pac 7302 */
Expand Down Expand Up @@ -486,8 +485,7 @@ static int reg_w_page(struct gspca_dev *gspca_dev,
/* output a variable sequence */
static int reg_w_var(struct gspca_dev *gspca_dev,
const __u8 *seq,
const __u8 *page3, unsigned int page3_len,
const __u8 *page4, unsigned int page4_len)
const __u8 *page3, unsigned int page3_len)
{
int index, len;
int ret = 0;
Expand All @@ -498,9 +496,6 @@ static int reg_w_var(struct gspca_dev *gspca_dev,
switch (len) {
case END_OF_SEQUENCE:
return ret;
case LOAD_PAGE4:
ret = reg_w_page(gspca_dev, page4, page4_len);
break;
case LOAD_PAGE3:
ret = reg_w_page(gspca_dev, page3, page3_len);
break;
Expand Down Expand Up @@ -745,8 +740,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
sd->sof_read = 0;

ret = reg_w_var(gspca_dev, start_7302,
page3_7302, sizeof(page3_7302),
NULL, 0);
page3_7302, sizeof(page3_7302));
if (0 <= ret)
ret = setbrightcont(gspca_dev);
if (0 <= ret)
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/media/video/gspca/pac7311.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ static const struct v4l2_pix_format vga_mode[] = {
.priv = 0},
};

#define LOAD_PAGE3 255
#define LOAD_PAGE4 254
#define END_OF_SEQUENCE 0

Expand Down Expand Up @@ -344,7 +343,6 @@ static int reg_w_page(struct gspca_dev *gspca_dev,
/* output a variable sequence */
static int reg_w_var(struct gspca_dev *gspca_dev,
const __u8 *seq,
const __u8 *page3, unsigned int page3_len,
const __u8 *page4, unsigned int page4_len)
{
int index, len;
Expand All @@ -359,9 +357,6 @@ static int reg_w_var(struct gspca_dev *gspca_dev,
case LOAD_PAGE4:
ret = reg_w_page(gspca_dev, page4, page4_len);
break;
case LOAD_PAGE3:
ret = reg_w_page(gspca_dev, page3, page3_len);
break;
default:
if (len > USB_BUF_SZ) {
PDEBUG(D_ERR|D_STREAM,
Expand Down Expand Up @@ -515,7 +510,6 @@ static int sd_start(struct gspca_dev *gspca_dev)
sd->sof_read = 0;

ret = reg_w_var(gspca_dev, start_7311,
NULL, 0,
page4_7311, sizeof(page4_7311));
if (0 <= ret)
ret = setcontrast(gspca_dev);
Expand Down

0 comments on commit b1748d6

Please sign in to comment.