aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-samsung/gpiolib.c16
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
47int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset) 47static 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
62int samsung_gpiolib_4bit_output(struct gpio_chip *chip, 63static 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
111int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset) 112static 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
132int samsung_gpiolib_4bit2_output(struct gpio_chip *chip, 134static 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;