Re: [patch] fix weird array index in zl10036.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Montag, 28. Dezember 2009, Dan Carpenter wrote:
> I was initially concerned about the weird array index (the 2 bumps
> into the next row of the array).  Matthias Schwarzott look at the
> datasheet and it turns out it should be zl10036_init_tab[1][0] |= 0x01;
> 
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
Signed-off-by: Matthias Schwarzott <zzam@xxxxxxxxxx>

It may be better to add "linux/" path component to make it apply easier.

Matthias

> 
> --- orig/drivers/media/dvb/frontends/zl10036.c	2009-12-28
>  19:04:51.000000000 +0200 +++
>  devel/drivers/media/dvb/frontends/zl10036.c	2009-12-28 19:07:18.000000000
>  +0200 @@ -411,7 +411,7 @@ static int zl10036_init_regs(struct zl10
>  	state->bf = 0xff;
> 
>  	if (!state->config->rf_loop_enable)
> -		zl10036_init_tab[1][2] |= 0x01;
> +		zl10036_init_tab[1][0] |= 0x01;
> 
>  	deb_info("%s\n", __func__);
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux