diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-02-12 14:22:17 -0500 |
---|---|---|
committer | Jon Hunter <jon-hunter@ti.com> | 2013-04-01 15:53:35 -0400 |
commit | 3fc089e7c5ff914b2660a6e91a8d032498c1e301 (patch) | |
tree | 52fd19c75124442a7480a717cf4bee8b0c929a6d /arch/arm/mach-omap2 | |
parent | c9fb80942444e57c75fb26c27fd77961f9ba2570 (diff) |
ARM: omap2: gpmc: Mark local scoped functions static
This patch marks a bunch of functions that are local
to gpmc.c file only as static.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-omap2/gpmc.h | 7 |
2 files changed, 7 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 98c5d413209e..0837621788ab 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -181,7 +181,7 @@ void gpmc_cs_write_reg(int cs, int idx, u32 val) | |||
181 | __raw_writel(val, reg_addr); | 181 | __raw_writel(val, reg_addr); |
182 | } | 182 | } |
183 | 183 | ||
184 | u32 gpmc_cs_read_reg(int cs, int idx) | 184 | static u32 gpmc_cs_read_reg(int cs, int idx) |
185 | { | 185 | { |
186 | void __iomem *reg_addr; | 186 | void __iomem *reg_addr; |
187 | 187 | ||
@@ -190,7 +190,7 @@ u32 gpmc_cs_read_reg(int cs, int idx) | |||
190 | } | 190 | } |
191 | 191 | ||
192 | /* TODO: Add support for gpmc_fck to clock framework and use it */ | 192 | /* TODO: Add support for gpmc_fck to clock framework and use it */ |
193 | unsigned long gpmc_get_fclk_period(void) | 193 | static unsigned long gpmc_get_fclk_period(void) |
194 | { | 194 | { |
195 | unsigned long rate = clk_get_rate(gpmc_l3_clk); | 195 | unsigned long rate = clk_get_rate(gpmc_l3_clk); |
196 | 196 | ||
@@ -205,7 +205,7 @@ unsigned long gpmc_get_fclk_period(void) | |||
205 | return rate; | 205 | return rate; |
206 | } | 206 | } |
207 | 207 | ||
208 | unsigned int gpmc_ns_to_ticks(unsigned int time_ns) | 208 | static unsigned int gpmc_ns_to_ticks(unsigned int time_ns) |
209 | { | 209 | { |
210 | unsigned long tick_ps; | 210 | unsigned long tick_ps; |
211 | 211 | ||
@@ -215,7 +215,7 @@ unsigned int gpmc_ns_to_ticks(unsigned int time_ns) | |||
215 | return (time_ns * 1000 + tick_ps - 1) / tick_ps; | 215 | return (time_ns * 1000 + tick_ps - 1) / tick_ps; |
216 | } | 216 | } |
217 | 217 | ||
218 | unsigned int gpmc_ps_to_ticks(unsigned int time_ps) | 218 | static unsigned int gpmc_ps_to_ticks(unsigned int time_ps) |
219 | { | 219 | { |
220 | unsigned long tick_ps; | 220 | unsigned long tick_ps; |
221 | 221 | ||
@@ -230,7 +230,7 @@ unsigned int gpmc_ticks_to_ns(unsigned int ticks) | |||
230 | return ticks * gpmc_get_fclk_period() / 1000; | 230 | return ticks * gpmc_get_fclk_period() / 1000; |
231 | } | 231 | } |
232 | 232 | ||
233 | unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns) | 233 | static unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns) |
234 | { | 234 | { |
235 | unsigned long ticks = gpmc_ns_to_ticks(time_ns); | 235 | unsigned long ticks = gpmc_ns_to_ticks(time_ns); |
236 | 236 | ||
@@ -448,7 +448,7 @@ static int gpmc_cs_mem_enabled(int cs) | |||
448 | return l & GPMC_CONFIG7_CSVALID; | 448 | return l & GPMC_CONFIG7_CSVALID; |
449 | } | 449 | } |
450 | 450 | ||
451 | int gpmc_cs_set_reserved(int cs, int reserved) | 451 | static int gpmc_cs_set_reserved(int cs, int reserved) |
452 | { | 452 | { |
453 | if (cs > GPMC_CS_NUM) | 453 | if (cs > GPMC_CS_NUM) |
454 | return -ENODEV; | 454 | return -ENODEV; |
@@ -459,7 +459,7 @@ int gpmc_cs_set_reserved(int cs, int reserved) | |||
459 | return 0; | 459 | return 0; |
460 | } | 460 | } |
461 | 461 | ||
462 | int gpmc_cs_reserved(int cs) | 462 | static int gpmc_cs_reserved(int cs) |
463 | { | 463 | { |
464 | if (cs > GPMC_CS_NUM) | 464 | if (cs > GPMC_CS_NUM) |
465 | return -ENODEV; | 465 | return -ENODEV; |
diff --git a/arch/arm/mach-omap2/gpmc.h b/arch/arm/mach-omap2/gpmc.h index f79cbde76738..697ff4225d5d 100644 --- a/arch/arm/mach-omap2/gpmc.h +++ b/arch/arm/mach-omap2/gpmc.h | |||
@@ -198,20 +198,13 @@ extern int gpmc_calc_timings(struct gpmc_timings *gpmc_t, | |||
198 | extern void gpmc_update_nand_reg(struct gpmc_nand_regs *reg, int cs); | 198 | extern void gpmc_update_nand_reg(struct gpmc_nand_regs *reg, int cs); |
199 | extern int gpmc_get_client_irq(unsigned irq_config); | 199 | extern int gpmc_get_client_irq(unsigned irq_config); |
200 | 200 | ||
201 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); | ||
202 | extern unsigned int gpmc_ps_to_ticks(unsigned int time_ps); | ||
203 | extern unsigned int gpmc_ticks_to_ns(unsigned int ticks); | 201 | extern unsigned int gpmc_ticks_to_ns(unsigned int ticks); |
204 | extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns); | ||
205 | extern unsigned long gpmc_get_fclk_period(void); | ||
206 | 202 | ||
207 | extern void gpmc_cs_write_reg(int cs, int idx, u32 val); | 203 | extern void gpmc_cs_write_reg(int cs, int idx, u32 val); |
208 | extern u32 gpmc_cs_read_reg(int cs, int idx); | ||
209 | extern int gpmc_calc_divider(unsigned int sync_clk); | 204 | extern int gpmc_calc_divider(unsigned int sync_clk); |
210 | extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t); | 205 | extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t); |
211 | extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); | 206 | extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); |
212 | extern void gpmc_cs_free(int cs); | 207 | extern void gpmc_cs_free(int cs); |
213 | extern int gpmc_cs_set_reserved(int cs, int reserved); | ||
214 | extern int gpmc_cs_reserved(int cs); | ||
215 | extern void omap3_gpmc_save_context(void); | 208 | extern void omap3_gpmc_save_context(void); |
216 | extern void omap3_gpmc_restore_context(void); | 209 | extern void omap3_gpmc_restore_context(void); |
217 | extern int gpmc_cs_configure(int cs, int cmd, int wval); | 210 | extern int gpmc_cs_configure(int cs, int cmd, int wval); |