Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: bt8xx: make read-only arrays static

Don't populate the arrays on the stack, instead make them static const.
Also add spaces between values to clean up checkpatch style warnings.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Colin Ian King and committed by
Hans Verkuil
026c3417 1a6c4bad

+9 -5
+9 -5
drivers/media/pci/bt8xx/dvb-bt8xx.c
··· 190 190 u32 freq = c->frequency; 191 191 int i, a, n, pump; 192 192 u32 band, pll; 193 - u32 osci[]={950000,1019000,1075000,1178000,1296000,1432000, 194 - 1576000,1718000,1856000,2036000,2150000}; 195 - u32 bandsel[]={0,0x00020000,0x00040000,0x00100800,0x00101000, 196 - 0x00102000,0x00104000,0x00108000,0x00110000, 197 - 0x00120000,0x00140000}; 193 + static const u32 osci[] = { 194 + 950000, 1019000, 1075000, 1178000, 1296000, 1432000, 195 + 1576000, 1718000, 1856000, 2036000, 2150000 196 + }; 197 + static const u32 bandsel[] = { 198 + 0, 0x00020000, 0x00040000, 0x00100800, 0x00101000, 199 + 0x00102000, 0x00104000, 0x00108000, 0x00110000, 200 + 0x00120000, 0x00140000 201 + }; 198 202 199 203 #define XTAL 1011100 /* Hz, really 1.0111 MHz and a /10 prescaler */ 200 204 dprintk("cx24108 debug: entering SetTunerFreq, freq=%d\n", freq);