On Sat,  9 Jan 2010 01:41:31 +0100
Antonio Ospite <osp...@studenti.unina.it> wrote:



> Index: gspca/linux/drivers/media/video/gspca/ov534.c
> ===================================================================
> --- gspca.orig/linux/drivers/media/video/gspca/ov534.c
> +++ gspca/linux/drivers/media/video/gspca/ov534.c
> @@ -282,6 +282,21 @@
>        .priv = 0},
>  };
>  
> +static const int qvga_rates[] = {125, 100, 75, 60, 50, 40, 30};
> +static const int vga_rates[] = {60, 50, 40, 30, 15};
> +

Hmm, after double checking compilation messages, having these as 'const'
produces two:
  warning: initialization discards qualifiers from pointer target type
in the assignments below.

If I remove the 'const' qualifiers here, the messages go away, so I'd
say we can do also without them. If that's ok I'll send a v2 soon,
sorry.

Thanks,
   Antonio

> +static const struct framerates ov772x_framerates[] = {
> +     { /* 320x240 */
> +             .rates = qvga_rates,
> +             .nrates = ARRAY_SIZE(qvga_rates),
> +     },
> +     { /* 640x480 */
> +             .rates = vga_rates,
> +             .nrates = ARRAY_SIZE(vga_rates),
> +     },
> +};
> +
> +
>  static const u8 bridge_init[][2] = {
>       { 0xc2, 0x0c },
>       { 0x88, 0xf8 },
> @@ -799,6 +814,7 @@
>  
>       cam->cam_mode = ov772x_mode;
>       cam->nmodes = ARRAY_SIZE(ov772x_mode);
> +     cam->mode_framerates = ov772x_framerates;
>  
>       cam->bulk = 1;
>       cam->bulk_size = 16384;


-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Attachment: pgp4D1q0L3AVD.pgp
Description: PGP signature

Reply via email to