diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-20 08:06:05 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-20 23:55:15 -0500 |
commit | 46f2b478b21bdb5bb588317c971a77df13702660 (patch) | |
tree | c426f94b52175d899c8720ea48f8dd24ef6ac953 | |
parent | 8dcdd6e6bb09ba1915668b45a0ee730e820d0de1 (diff) |
ARM: SAMSUNG: Staticise gpiolib implementation functions
They are not exported, they are referenced via vtables.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r-- | arch/arm/plat-samsung/gpiolib.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/arm/plat-samsung/gpiolib.c b/arch/arm/plat-samsung/gpiolib.c index 3419b67f4221..8a8ba8bc1d96 100644 --- a/arch/arm/plat-samsung/gpiolib.c +++ b/arch/arm/plat-samsung/gpiolib.c | |||
@@ -44,7 +44,8 @@ | |||
44 | * the output. | 44 | * the output. |
45 | */ | 45 | */ |
46 | 46 | ||
47 | int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset) | 47 | static int samsung_gpiolib_4bit_input(struct gpio_chip *chip, |
48 | unsigned int offset) | ||
48 | { | 49 | { |
49 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); | 50 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); |
50 | void __iomem *base = ourchip->base; | 51 | void __iomem *base = ourchip->base; |
@@ -59,8 +60,8 @@ int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset) | |||
59 | return 0; | 60 | return 0; |
60 | } | 61 | } |
61 | 62 | ||
62 | int samsung_gpiolib_4bit_output(struct gpio_chip *chip, | 63 | static int samsung_gpiolib_4bit_output(struct gpio_chip *chip, |
63 | unsigned int offset, int value) | 64 | unsigned int offset, int value) |
64 | { | 65 | { |
65 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); | 66 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); |
66 | void __iomem *base = ourchip->base; | 67 | void __iomem *base = ourchip->base; |
@@ -106,9 +107,10 @@ int samsung_gpiolib_4bit_output(struct gpio_chip *chip, | |||
106 | * To allow us to use the s3c_gpiolib_get and s3c_gpiolib_set routines we | 107 | * To allow us to use the s3c_gpiolib_get and s3c_gpiolib_set routines we |
107 | * store the 'base + 0x4' address so that these routines see the data | 108 | * store the 'base + 0x4' address so that these routines see the data |
108 | * register at ourchip->base + 0x04. | 109 | * register at ourchip->base + 0x04. |
109 | */ | 110 | */ |
110 | 111 | ||
111 | int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset) | 112 | static int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, |
113 | unsigned int offset) | ||
112 | { | 114 | { |
113 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); | 115 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); |
114 | void __iomem *base = ourchip->base; | 116 | void __iomem *base = ourchip->base; |
@@ -129,8 +131,8 @@ int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset) | |||
129 | return 0; | 131 | return 0; |
130 | } | 132 | } |
131 | 133 | ||
132 | int samsung_gpiolib_4bit2_output(struct gpio_chip *chip, | 134 | static int samsung_gpiolib_4bit2_output(struct gpio_chip *chip, |
133 | unsigned int offset, int value) | 135 | unsigned int offset, int value) |
134 | { | 136 | { |
135 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); | 137 | struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); |
136 | void __iomem *base = ourchip->base; | 138 | void __iomem *base = ourchip->base; |