diff options
author | Márton Németh <nm127@freemail.hu> | 2009-12-13 15:19:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 06:27:58 -0500 |
commit | c86a3c37b1ae77b672c8ff77f833484a2936f125 (patch) | |
tree | 0726c56a707846a3f2f3b76678535528e0663f97 /drivers | |
parent | 7ee0a28829e245648091040d4ba30feea5fa5ed5 (diff) |
V4L/DVB (13688): au8522: modify the attributes of local filter coefficients
Make the local filter coefficients static and const. This will eliminate the
following sparse warnings (see "make C=1"):
* au8522_decoder.c:71:31: warning: symbol 'filter_coef' was not declared. Should it be static?
* au8522_decoder.c:113:31: warning: symbol 'lpfilter_coef' was not declared. Should it be static?
Signed-off-by: Márton Németh <nm127@freemail.hu>
Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/au8522_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/au8522_decoder.c b/drivers/media/dvb/frontends/au8522_decoder.c index 2dc2723b724a..24268ef2753d 100644 --- a/drivers/media/dvb/frontends/au8522_decoder.c +++ b/drivers/media/dvb/frontends/au8522_decoder.c | |||
@@ -62,7 +62,7 @@ struct au8522_register_config { | |||
62 | The values are as follows from left to right | 62 | The values are as follows from left to right |
63 | 0="ATV RF" 1="ATV RF13" 2="CVBS" 3="S-Video" 4="PAL" 5=CVBS13" 6="SVideo13" | 63 | 0="ATV RF" 1="ATV RF13" 2="CVBS" 3="S-Video" 4="PAL" 5=CVBS13" 6="SVideo13" |
64 | */ | 64 | */ |
65 | struct au8522_register_config filter_coef[] = { | 65 | static const struct au8522_register_config filter_coef[] = { |
66 | {AU8522_FILTER_COEF_R410, {0x25, 0x00, 0x25, 0x25, 0x00, 0x00, 0x00} }, | 66 | {AU8522_FILTER_COEF_R410, {0x25, 0x00, 0x25, 0x25, 0x00, 0x00, 0x00} }, |
67 | {AU8522_FILTER_COEF_R411, {0x20, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00} }, | 67 | {AU8522_FILTER_COEF_R411, {0x20, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00} }, |
68 | {AU8522_FILTER_COEF_R412, {0x03, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00} }, | 68 | {AU8522_FILTER_COEF_R412, {0x03, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00} }, |
@@ -104,7 +104,7 @@ struct au8522_register_config filter_coef[] = { | |||
104 | 0="SIF" 1="ATVRF/ATVRF13" | 104 | 0="SIF" 1="ATVRF/ATVRF13" |
105 | Note: the "ATVRF/ATVRF13" mode has never been tested | 105 | Note: the "ATVRF/ATVRF13" mode has never been tested |
106 | */ | 106 | */ |
107 | struct au8522_register_config lpfilter_coef[] = { | 107 | static const struct au8522_register_config lpfilter_coef[] = { |
108 | {0x060b, {0x21, 0x0b} }, | 108 | {0x060b, {0x21, 0x0b} }, |
109 | {0x060c, {0xad, 0xad} }, | 109 | {0x060c, {0xad, 0xad} }, |
110 | {0x060d, {0x70, 0xf0} }, | 110 | {0x060d, {0x70, 0xf0} }, |