aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan <gnomes@lxorguk.ukuu.org.uk>2014-01-20 13:03:04 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-04 14:33:46 -0400
commit690130fe0b4c1a72c931e9aafbec8f21dbeed20c (patch)
tree4fd3b2f05ee774563b18e7913847f43d527604bc /drivers
parentb4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb-frontends/tda18271c2dd_maps.h8
-rw-r--r--drivers/media/tuners/r820t.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/dvb-frontends/tda18271c2dd_maps.h b/drivers/media/dvb-frontends/tda18271c2dd_maps.h
index b87661b9df14..f3bca5c237d7 100644
--- a/drivers/media/dvb-frontends/tda18271c2dd_maps.h
+++ b/drivers/media/dvb-frontends/tda18271c2dd_maps.h
@@ -5,7 +5,7 @@ enum HF_S {
5 HF_DVBC_8MHZ, HF_DVBC 5 HF_DVBC_8MHZ, HF_DVBC
6}; 6};
7 7
8struct SStandardParam m_StandardTable[] = { 8static struct SStandardParam m_StandardTable[] = {
9 { 0, 0, 0x00, 0x00 }, /* HF_None */ 9 { 0, 0, 0x00, 0x00 }, /* HF_None */
10 { 6000000, 7000000, 0x1D, 0x2C }, /* HF_B, */ 10 { 6000000, 7000000, 0x1D, 0x2C }, /* HF_B, */
11 { 6900000, 8000000, 0x1E, 0x2C }, /* HF_DK, */ 11 { 6900000, 8000000, 0x1E, 0x2C }, /* HF_DK, */
@@ -27,7 +27,7 @@ struct SStandardParam m_StandardTable[] = {
27 { 0, 0, 0x00, 0x00 }, /* HF_DVBC (Unused) */ 27 { 0, 0, 0x00, 0x00 }, /* HF_DVBC (Unused) */
28}; 28};
29 29
30struct SMap m_BP_Filter_Map[] = { 30static struct SMap m_BP_Filter_Map[] = {
31 { 62000000, 0x00 }, 31 { 62000000, 0x00 },
32 { 84000000, 0x01 }, 32 { 84000000, 0x01 },
33 { 100000000, 0x02 }, 33 { 100000000, 0x02 },
@@ -799,14 +799,14 @@ static struct SRFBandMap m_RF_Band_Map[7] = {
799 { 865000000, 489500000, 697500000, 842000000}, 799 { 865000000, 489500000, 697500000, 842000000},
800}; 800};
801 801
802u8 m_Thermometer_Map_1[16] = { 802static u8 m_Thermometer_Map_1[16] = {
803 60, 62, 66, 64, 803 60, 62, 66, 64,
804 74, 72, 68, 70, 804 74, 72, 68, 70,
805 90, 88, 84, 86, 805 90, 88, 84, 86,
806 76, 78, 82, 80, 806 76, 78, 82, 80,
807}; 807};
808 808
809u8 m_Thermometer_Map_2[16] = { 809static u8 m_Thermometer_Map_2[16] = {
810 92, 94, 98, 96, 810 92, 94, 98, 96,
811 106, 104, 100, 102, 811 106, 104, 100, 102,
812 122, 120, 116, 118, 812 122, 120, 116, 118,
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c
index 96ccfebce7ca..a0db64f57a98 100644
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -1545,7 +1545,7 @@ static int r820t_imr_cross(struct r820t_priv *priv,
1545 cross[i].value = rc; 1545 cross[i].value = rc;
1546 1546
1547 if (cross[i].value < tmp.value) 1547 if (cross[i].value < tmp.value)
1548 memcpy(&tmp, &cross[i], sizeof(tmp)); 1548 tmp = cross[i];
1549 } 1549 }
1550 1550
1551 if ((tmp.phase_y & 0x1f) == 1) { /* y-direction */ 1551 if ((tmp.phase_y & 0x1f) == 1) { /* y-direction */