mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-12 04:19:08 +00:00
[media] gspca: Remove the useless variable 'reverse_alts'
The alternate settings are now sorted in gspca main, so the flag 'reverse_alts' is no more useful. Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
50815707ee
commit
a67648797a
@ -76,7 +76,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
|||||||
gspca_dev->cam.cam_mode = vga_mode;
|
gspca_dev->cam.cam_mode = vga_mode;
|
||||||
gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
|
gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
|
||||||
gspca_dev->cam.no_urb_create = 1;
|
gspca_dev->cam.no_urb_create = 1;
|
||||||
gspca_dev->cam.reverse_alts = 1;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,6 @@ struct cam {
|
|||||||
u8 bulk; /* image transfer by 0:isoc / 1:bulk */
|
u8 bulk; /* image transfer by 0:isoc / 1:bulk */
|
||||||
u8 npkt; /* number of packets in an ISOC message
|
u8 npkt; /* number of packets in an ISOC message
|
||||||
* 0 is the default value: 32 packets */
|
* 0 is the default value: 32 packets */
|
||||||
u8 reverse_alts; /* Alt settings are in high to low order */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gspca_dev;
|
struct gspca_dev;
|
||||||
|
@ -1763,7 +1763,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
|||||||
if ((unsigned) webcam >= NWEBCAMS)
|
if ((unsigned) webcam >= NWEBCAMS)
|
||||||
webcam = 0;
|
webcam = 0;
|
||||||
sd->webcam = webcam;
|
sd->webcam = webcam;
|
||||||
gspca_dev->cam.reverse_alts = 1;
|
|
||||||
gspca_dev->cam.ctrls = sd->ctrls;
|
gspca_dev->cam.ctrls = sd->ctrls;
|
||||||
sd->ag_cnt = -1;
|
sd->ag_cnt = -1;
|
||||||
|
|
||||||
|
@ -3348,7 +3348,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
|||||||
case BRIDGE_W9968CF:
|
case BRIDGE_W9968CF:
|
||||||
cam->cam_mode = w9968cf_vga_mode;
|
cam->cam_mode = w9968cf_vga_mode;
|
||||||
cam->nmodes = ARRAY_SIZE(w9968cf_vga_mode);
|
cam->nmodes = ARRAY_SIZE(w9968cf_vga_mode);
|
||||||
cam->reverse_alts = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -995,14 +995,12 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
|||||||
case CIT_MODEL0:
|
case CIT_MODEL0:
|
||||||
cam->cam_mode = model0_mode;
|
cam->cam_mode = model0_mode;
|
||||||
cam->nmodes = ARRAY_SIZE(model0_mode);
|
cam->nmodes = ARRAY_SIZE(model0_mode);
|
||||||
cam->reverse_alts = 1;
|
|
||||||
gspca_dev->ctrl_dis = ~((1 << SD_CONTRAST) | (1 << SD_HFLIP));
|
gspca_dev->ctrl_dis = ~((1 << SD_CONTRAST) | (1 << SD_HFLIP));
|
||||||
sd->sof_len = 4;
|
sd->sof_len = 4;
|
||||||
break;
|
break;
|
||||||
case CIT_MODEL1:
|
case CIT_MODEL1:
|
||||||
cam->cam_mode = cif_yuv_mode;
|
cam->cam_mode = cif_yuv_mode;
|
||||||
cam->nmodes = ARRAY_SIZE(cif_yuv_mode);
|
cam->nmodes = ARRAY_SIZE(cif_yuv_mode);
|
||||||
cam->reverse_alts = 1;
|
|
||||||
gspca_dev->ctrl_dis = (1 << SD_HUE) | (1 << SD_HFLIP);
|
gspca_dev->ctrl_dis = (1 << SD_HUE) | (1 << SD_HFLIP);
|
||||||
sd->sof_len = 4;
|
sd->sof_len = 4;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user