diff options
author | Márton Németh <nm127@freemail.hu> | 2010-01-16 11:41:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:46 -0500 |
commit | 936c05e7f677640a9bc4d77354899f199d7d958f (patch) | |
tree | eb9d95a865d77ff1bf941ea0ba9addef93302bcc /drivers/media | |
parent | 521e86eb4354080dc2d178e3d8a7ebd8f0e8b4e5 (diff) |
V4L/DVB: stv0900: make more local functions static
Some functions are only used locally so mark them static.
This will remove the following sparse warnings (see "make C=1"):
* symbol 'extract_mask_pos' was not declared. Should it be static?
* symbol 'stv0900_initialize' was not declared. Should it be static?
* symbol 'stv0900_get_mclk_freq' was not declared. Should it be static?
* symbol 'stv0900_set_mclk' was not declared. Should it be static?
* symbol 'stv0900_get_err_count' was not declared. Should it be static?
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/stv0900_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c index 115dc01c2234..74791d550dc7 100644 --- a/drivers/media/dvb/frontends/stv0900_core.c +++ b/drivers/media/dvb/frontends/stv0900_core.c | |||
@@ -177,7 +177,7 @@ u8 stv0900_read_reg(struct stv0900_internal *intp, u16 reg) | |||
177 | return buf; | 177 | return buf; |
178 | } | 178 | } |
179 | 179 | ||
180 | void extract_mask_pos(u32 label, u8 *mask, u8 *pos) | 180 | static void extract_mask_pos(u32 label, u8 *mask, u8 *pos) |
181 | { | 181 | { |
182 | u8 position = 0, i = 0; | 182 | u8 position = 0, i = 0; |
183 | 183 | ||
@@ -218,7 +218,7 @@ u8 stv0900_get_bits(struct stv0900_internal *intp, u32 label) | |||
218 | return val; | 218 | return val; |
219 | } | 219 | } |
220 | 220 | ||
221 | enum fe_stv0900_error stv0900_initialize(struct stv0900_internal *intp) | 221 | static enum fe_stv0900_error stv0900_initialize(struct stv0900_internal *intp) |
222 | { | 222 | { |
223 | s32 i; | 223 | s32 i; |
224 | 224 | ||
@@ -282,7 +282,7 @@ enum fe_stv0900_error stv0900_initialize(struct stv0900_internal *intp) | |||
282 | return STV0900_NO_ERROR; | 282 | return STV0900_NO_ERROR; |
283 | } | 283 | } |
284 | 284 | ||
285 | u32 stv0900_get_mclk_freq(struct stv0900_internal *intp, u32 ext_clk) | 285 | static u32 stv0900_get_mclk_freq(struct stv0900_internal *intp, u32 ext_clk) |
286 | { | 286 | { |
287 | u32 mclk = 90000000, div = 0, ad_div = 0; | 287 | u32 mclk = 90000000, div = 0, ad_div = 0; |
288 | 288 | ||
@@ -296,7 +296,7 @@ u32 stv0900_get_mclk_freq(struct stv0900_internal *intp, u32 ext_clk) | |||
296 | return mclk; | 296 | return mclk; |
297 | } | 297 | } |
298 | 298 | ||
299 | enum fe_stv0900_error stv0900_set_mclk(struct stv0900_internal *intp, u32 mclk) | 299 | static enum fe_stv0900_error stv0900_set_mclk(struct stv0900_internal *intp, u32 mclk) |
300 | { | 300 | { |
301 | u32 m_div, clk_sel; | 301 | u32 m_div, clk_sel; |
302 | 302 | ||
@@ -334,7 +334,7 @@ enum fe_stv0900_error stv0900_set_mclk(struct stv0900_internal *intp, u32 mclk) | |||
334 | return STV0900_NO_ERROR; | 334 | return STV0900_NO_ERROR; |
335 | } | 335 | } |
336 | 336 | ||
337 | u32 stv0900_get_err_count(struct stv0900_internal *intp, int cntr, | 337 | static u32 stv0900_get_err_count(struct stv0900_internal *intp, int cntr, |
338 | enum fe_stv0900_demod_num demod) | 338 | enum fe_stv0900_demod_num demod) |
339 | { | 339 | { |
340 | u32 lsb, msb, hsb, err_val; | 340 | u32 lsb, msb, hsb, err_val; |