diff options
author | Huacai Chen <chenhc@lemote.com> | 2015-03-31 22:20:07 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-04-07 05:13:56 -0400 |
commit | df5dade4a7b29b003e000c5db5c35612e0b1019b (patch) | |
tree | 8feb005ff876ae9d1df0a74101bedb223f3f0b00 /arch/mips/include/asm | |
parent | b8a51a2e8a9f8e24f8f155772168a7ca35ce7f75 (diff) |
MIPS: Cleanup Loongson-2F's gpio driver
This cleanup is prepare to move the driver to drivers/gpio. Custom
definitions of gpio_get_value()/gpio_set_value() are dropped.
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/mach-loongson/gpio.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/mips/include/asm/mach-loongson/gpio.h b/arch/mips/include/asm/mach-loongson/gpio.h index 211a7b7138fe..b3b216904a9a 100644 --- a/arch/mips/include/asm/mach-loongson/gpio.h +++ b/arch/mips/include/asm/mach-loongson/gpio.h | |||
@@ -1,8 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * STLS2F GPIO Support | 2 | * Loongson GPIO Support |
3 | * | 3 | * |
4 | * Copyright (c) 2008 Richard Liu, STMicroelectronics <richard.liu@st.com> | 4 | * Copyright (c) 2008 Richard Liu, STMicroelectronics <richard.liu@st.com> |
5 | * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com> | 5 | * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com> |
6 | * Copyright (c) 2014 Huacai Chen <chenhc@lemote.com> | ||
6 | * | 7 | * |
7 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 9 | * it under the terms of the GNU General Public License as published by |
@@ -10,14 +11,14 @@ | |||
10 | * (at your option) any later version. | 11 | * (at your option) any later version. |
11 | */ | 12 | */ |
12 | 13 | ||
13 | #ifndef __STLS2F_GPIO_H | 14 | #ifndef __LOONGSON_GPIO_H |
14 | #define __STLS2F_GPIO_H | 15 | #define __LOONGSON_GPIO_H |
15 | 16 | ||
16 | #include <asm-generic/gpio.h> | 17 | #include <asm-generic/gpio.h> |
17 | 18 | ||
18 | extern void gpio_set_value(unsigned gpio, int value); | 19 | #define gpio_get_value __gpio_get_value |
19 | extern int gpio_get_value(unsigned gpio); | 20 | #define gpio_set_value __gpio_set_value |
20 | extern int gpio_cansleep(unsigned gpio); | 21 | #define gpio_cansleep __gpio_cansleep |
21 | 22 | ||
22 | /* The chip can do interrupt | 23 | /* The chip can do interrupt |
23 | * but it has not been tested and doc not clear | 24 | * but it has not been tested and doc not clear |
@@ -32,4 +33,4 @@ static inline int irq_to_gpio(int gpio) | |||
32 | return -EINVAL; | 33 | return -EINVAL; |
33 | } | 34 | } |
34 | 35 | ||
35 | #endif /* __STLS2F_GPIO_H */ | 36 | #endif /* __LOONGSON_GPIO_H */ |