aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2011-06-13 04:47:15 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-06-13 11:03:48 -0400
commit12610be33df5563d3f8cb141f231d4dc5b2a317f (patch)
tree122fa004a24d7522188a4adc151ea7f2674755f8 /drivers/gpio
parent5523f86beab2b87d42cd58aca9bd5cee5466c6e3 (diff)
gpio/74x164: fix clash with gpiolib namespace
The 74x164 GPIO driver has a static inline helper called gpio_to_chip which clashes with the gpiolib namespace if we try to expose the function with the same name from gpiolib, and it's still confusing even if we don't do that. So rename it to gpio_to_74x164_chip(). Reported-by: H Hartley Sweeten <hartleys@visionengravers.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-74x164.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c
index 7fb60b6bf523..ff525c0958dd 100644
--- a/drivers/gpio/gpio-74x164.c
+++ b/drivers/gpio/gpio-74x164.c
@@ -23,7 +23,7 @@ struct gen_74x164_chip {
23 u8 port_config; 23 u8 port_config;
24}; 24};
25 25
26static struct gen_74x164_chip *gpio_to_chip(struct gpio_chip *gc) 26static struct gen_74x164_chip *gpio_to_74x164_chip(struct gpio_chip *gc)
27{ 27{
28 return container_of(gc, struct gen_74x164_chip, gpio_chip); 28 return container_of(gc, struct gen_74x164_chip, gpio_chip);
29} 29}
@@ -36,7 +36,7 @@ static int __gen_74x164_write_config(struct gen_74x164_chip *chip)
36 36
37static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset) 37static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset)
38{ 38{
39 struct gen_74x164_chip *chip = gpio_to_chip(gc); 39 struct gen_74x164_chip *chip = gpio_to_74x164_chip(gc);
40 int ret; 40 int ret;
41 41
42 mutex_lock(&chip->lock); 42 mutex_lock(&chip->lock);
@@ -49,7 +49,7 @@ static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset)
49static void gen_74x164_set_value(struct gpio_chip *gc, 49static void gen_74x164_set_value(struct gpio_chip *gc,
50 unsigned offset, int val) 50 unsigned offset, int val)
51{ 51{
52 struct gen_74x164_chip *chip = gpio_to_chip(gc); 52 struct gen_74x164_chip *chip = gpio_to_74x164_chip(gc);
53 53
54 mutex_lock(&chip->lock); 54 mutex_lock(&chip->lock);
55 if (val) 55 if (val)