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

[media] dvb-frontends: Add static

Add static to tda m_* variables in the header. They don't need to be global.
With some cleanup they could probably even be marked const.

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=68191

Reported-by: Christian Schneider <christian@ch-sc.de>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Alan and committed by
Mauro Carvalho Chehab
690130fe b4e3e59f

+5 -5
+4 -4
drivers/media/dvb-frontends/tda18271c2dd_maps.h
··· 5 5 HF_DVBC_8MHZ, HF_DVBC 6 6 }; 7 7 8 - struct SStandardParam m_StandardTable[] = { 8 + static struct SStandardParam m_StandardTable[] = { 9 9 { 0, 0, 0x00, 0x00 }, /* HF_None */ 10 10 { 6000000, 7000000, 0x1D, 0x2C }, /* HF_B, */ 11 11 { 6900000, 8000000, 0x1E, 0x2C }, /* HF_DK, */ ··· 27 27 { 0, 0, 0x00, 0x00 }, /* HF_DVBC (Unused) */ 28 28 }; 29 29 30 - struct SMap m_BP_Filter_Map[] = { 30 + static struct SMap m_BP_Filter_Map[] = { 31 31 { 62000000, 0x00 }, 32 32 { 84000000, 0x01 }, 33 33 { 100000000, 0x02 }, ··· 799 799 { 865000000, 489500000, 697500000, 842000000}, 800 800 }; 801 801 802 - u8 m_Thermometer_Map_1[16] = { 802 + static u8 m_Thermometer_Map_1[16] = { 803 803 60, 62, 66, 64, 804 804 74, 72, 68, 70, 805 805 90, 88, 84, 86, 806 806 76, 78, 82, 80, 807 807 }; 808 808 809 - u8 m_Thermometer_Map_2[16] = { 809 + static u8 m_Thermometer_Map_2[16] = { 810 810 92, 94, 98, 96, 811 811 106, 104, 100, 102, 812 812 122, 120, 116, 118,
+1 -1
drivers/media/tuners/r820t.c
··· 1545 1545 cross[i].value = rc; 1546 1546 1547 1547 if (cross[i].value < tmp.value) 1548 - memcpy(&tmp, &cross[i], sizeof(tmp)); 1548 + tmp = cross[i]; 1549 1549 } 1550 1550 1551 1551 if ((tmp.phase_y & 0x1f) == 1) { /* y-direction */