提交 46f2b478 编写于 作者: M Mark Brown 提交者: Ben Dooks

ARM: SAMSUNG: Staticise gpiolib implementation functions

They are not exported, they are referenced via vtables.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
上级 8dcdd6e6
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
* the output. * the output.
*/ */
int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset) static int samsung_gpiolib_4bit_input(struct gpio_chip *chip,
unsigned int offset)
{ {
struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip);
void __iomem *base = ourchip->base; void __iomem *base = ourchip->base;
...@@ -59,8 +60,8 @@ int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset) ...@@ -59,8 +60,8 @@ int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset)
return 0; return 0;
} }
int samsung_gpiolib_4bit_output(struct gpio_chip *chip, static int samsung_gpiolib_4bit_output(struct gpio_chip *chip,
unsigned int offset, int value) unsigned int offset, int value)
{ {
struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip);
void __iomem *base = ourchip->base; void __iomem *base = ourchip->base;
...@@ -106,9 +107,10 @@ int samsung_gpiolib_4bit_output(struct gpio_chip *chip, ...@@ -106,9 +107,10 @@ int samsung_gpiolib_4bit_output(struct gpio_chip *chip,
* To allow us to use the s3c_gpiolib_get and s3c_gpiolib_set routines we * To allow us to use the s3c_gpiolib_get and s3c_gpiolib_set routines we
* store the 'base + 0x4' address so that these routines see the data * store the 'base + 0x4' address so that these routines see the data
* register at ourchip->base + 0x04. * register at ourchip->base + 0x04.
*/ */
int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset) static int samsung_gpiolib_4bit2_input(struct gpio_chip *chip,
unsigned int offset)
{ {
struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip);
void __iomem *base = ourchip->base; void __iomem *base = ourchip->base;
...@@ -129,8 +131,8 @@ int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset) ...@@ -129,8 +131,8 @@ int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset)
return 0; return 0;
} }
int samsung_gpiolib_4bit2_output(struct gpio_chip *chip, static int samsung_gpiolib_4bit2_output(struct gpio_chip *chip,
unsigned int offset, int value) unsigned int offset, int value)
{ {
struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip); struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip);
void __iomem *base = ourchip->base; void __iomem *base = ourchip->base;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册