From 49b34728f956238c5fdbec568be0247fb8be95c6 Mon Sep 17 00:00:00 2001 From: thl Date: Thu, 20 Nov 2008 18:31:00 +0000 Subject: [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 --- .../linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'target/linux/ifxmips/files/include/asm-mips') 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 0dece372d1..761a31bb90 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) -- cgit v1.2.3