summaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files/include/asm-mips
diff options
context:
space:
mode:
authorthl <thl@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-11-20 18:31:00 +0000
committerthl <thl@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-11-20 18:31:00 +0000
commit49b34728f956238c5fdbec568be0247fb8be95c6 (patch)
treec27e65457073e14fccdb143d901b02f5c64dd2ad /target/linux/ifxmips/files/include/asm-mips
parent54b8671bd25722d397706ab1ef82ffc1faed6d06 (diff)
[ifxmips] 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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13295 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files/include/asm-mips')
-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 0dece372d..761a31bb9 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)