summaryrefslogtreecommitdiff
path: root/target/linux/ifxmips/files/include
diff options
context:
space:
mode:
authorThomas Langer <thomas.langer@lantiq.com>2008-11-20 18:31:00 +0000
committerThomas Langer <thomas.langer@lantiq.com>2008-11-20 18:31:00 +0000
commit1bc6841c8dff78e1b8bafb53dbea352b56a56d65 (patch)
treecb679195b46e22f043b2b7a51d4f3187bacfee12 /target/linux/ifxmips/files/include
parent88dd88931466259ca3b785de42f8088274348081 (diff)
downloadmtk-20170518-1bc6841c8dff78e1b8bafb53dbea352b56a56d65.zip
mtk-20170518-1bc6841c8dff78e1b8bafb53dbea352b56a56d65.tar.gz
mtk-20170518-1bc6841c8dff78e1b8bafb53dbea352b56a56d65.tar.bz2
some cleanups: - fix CPUID detection - update MTD map for checks and sysupgrade - enable subtargets (Generic&NFS) for simpler development - generic cleanups (e.g. from linux checkpatch.pl)
SVN-Revision: 13295
Diffstat (limited to 'target/linux/ifxmips/files/include')
-rw-r--r--target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h b/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
index 0dece37..761a31b 100644
--- a/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
+++ b/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
@@ -32,7 +32,7 @@
static inline int gpio_direction_input(unsigned gpio) {
ifxmips_port_set_open_drain(GPIO_TO_PORT(gpio), GPIO_TO_GPIO(gpio));
ifxmips_port_clear_altsel0(GPIO_TO_PORT(gpio), GPIO_TO_GPIO(gpio));
- ifxmips_port_clear_altsel1(GPIO_TO_PORT(gpio), GPIO_TO_GPIO(gpio));
+ ifxmips_port_clear_altsel1(GPIO_TO_PORT(gpio), GPIO_TO_GPIO(gpio));
ifxmips_port_set_dir_in(GPIO_TO_PORT(gpio), GPIO_TO_GPIO(gpio));
return 0;
}
@@ -73,17 +73,17 @@ static inline int irq_to_gpio(unsigned irq) {
}
static inline int gpio_cansleep(unsigned gpio) {
- return 0;
+ return 0;
}
static inline int gpio_get_value_cansleep(unsigned gpio) {
- might_sleep();
- return gpio_get_value(gpio);
+ might_sleep();
+ return gpio_get_value(gpio);
}
static inline void gpio_set_value_cansleep(unsigned gpio, int value) {
- might_sleep();
- gpio_set_value(gpio, value);
+ might_sleep();
+ gpio_set_value(gpio, value);
}
static inline int gpio_is_valid(int number)