Skip to content

Commit

Permalink
ARM: SAMSUNG: Staticise gpiolib implementation functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Ben Dooks committed Jan 21, 2010
1 parent 8dcdd6e commit 46f2b47
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions arch/arm/plat-samsung/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
* 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);
void __iomem *base = ourchip->base;
Expand All @@ -59,8 +60,8 @@ int samsung_gpiolib_4bit_input(struct gpio_chip *chip, unsigned int offset)
return 0;
}

int samsung_gpiolib_4bit_output(struct gpio_chip *chip,
unsigned int offset, int value)
static int samsung_gpiolib_4bit_output(struct gpio_chip *chip,
unsigned int offset, int value)
{
struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip);
void __iomem *base = ourchip->base;
Expand Down Expand Up @@ -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
* store the 'base + 0x4' address so that these routines see the data
* 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);
void __iomem *base = ourchip->base;
Expand All @@ -129,8 +131,8 @@ int samsung_gpiolib_4bit2_input(struct gpio_chip *chip, unsigned int offset)
return 0;
}

int samsung_gpiolib_4bit2_output(struct gpio_chip *chip,
unsigned int offset, int value)
static int samsung_gpiolib_4bit2_output(struct gpio_chip *chip,
unsigned int offset, int value)
{
struct s3c_gpio_chip *ourchip = to_s3c_gpio(chip);
void __iomem *base = ourchip->base;
Expand Down

0 comments on commit 46f2b47

Please sign in to comment.