Skip to content

Commit df30727

Browse files
committed
memory: of: Remove unneeded extern from function declarations
Function declarations in headers do not need to come with extern keyword. Remove them to make the declaration slightly shorter. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
1 parent 9825095 commit df30727

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎drivers/memory/of_memory.h‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
* OpenFirmware helpers for memory drivers
44
*
55
* Copyright (C) 2012 Texas Instruments, Inc.
6+
* Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org>
67
*/
78

89
#ifndef __LINUX_MEMORY_OF_REG_H
910
#define __LINUX_MEMORY_OF_REG_H
1011

1112
#if defined(CONFIG_OF) && defined(CONFIG_DDR)
12-
extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
13-
struct device *dev);
14-
extern const struct lpddr2_timings
15-
*of_get_ddr_timings(struct device_node *np_ddr, struct device *dev,
16-
u32 device_type, u32 *nr_frequencies);
17-
extern const struct lpddr3_min_tck
18-
*of_lpddr3_get_min_tck(struct device_node *np, struct device *dev);
19-
extern const struct lpddr3_timings
20-
*of_lpddr3_get_ddr_timings(struct device_node *np_ddr,
21-
struct device *dev, u32 device_type, u32 *nr_frequencies);
13+
const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
14+
struct device *dev);
15+
const struct lpddr2_timings *of_get_ddr_timings(struct device_node *np_ddr,
16+
struct device *dev,
17+
u32 device_type, u32 *nr_frequencies);
18+
const struct lpddr3_min_tck *of_lpddr3_get_min_tck(struct device_node *np,
19+
struct device *dev);
20+
const struct lpddr3_timings *
21+
of_lpddr3_get_ddr_timings(struct device_node *np_ddr,
22+
struct device *dev, u32 device_type, u32 *nr_frequencies);
2223
#else
2324
static inline const struct lpddr2_min_tck
2425
*of_get_min_tck(struct device_node *np, struct device *dev)

0 commit comments

Comments
 (0)