]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
V4L/DVB: gspca - pac7302/pac7311: Remove the unused page loading
authorJean-Francois Moine <moinejf@free.fr>
Wed, 13 Jan 2010 11:30:30 +0000 (08:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:47 +0000 (15:10 -0300)
There is only one page to load (page 3 for pac7302 and page 4 for pac7311).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/pac7302.c
drivers/media/video/gspca/pac7311.c

index 9660599f783e473c50a3acc89309fc827908620a..336d97ddf54e2ffa5c9e39e9f1ac46fe9d14df0f 100644 (file)
@@ -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 */
@@ -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;
@@ -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;
@@ -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)
index 704cf67e1788913682cf6097dd0abaff66bdf2d9..a9f195e6677c04c6f6f3980795eb597bf68e9a21 100644 (file)
@@ -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
 
@@ -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;
@@ -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,
@@ -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);