]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
CRIS v10: Update drivers/gpio.c, fix locking and general improvements.
authorJesper Nilsson <jesper.nilsson@axis.com>
Fri, 25 Jan 2008 14:42:41 +0000 (15:42 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:34 +0000 (11:06 +0100)
commit45a4127c10abff5edce4448c7bc951d0a112e67a
treece08e42dff601a450a5e0d22572d6376d0789438
parent46aac058fe525a2a659e3363fa9bcd7d6bbf2d73
CRIS v10: Update drivers/gpio.c, fix locking and general improvements.

- Change all spin_lock/local_irq_save to spin_lock_irqsave.
- Change multiple returns in functions where we have a lock to goto out.
- Correct number of arguments to gpio_poll_timer_interrupt, gpio_pa_interrupt.
- Break out gpio_write logic to smaller functions to make it readable.
- In setget_input and setget_output, avoid extra if-indent level.
- Change name LED_* -> CRIS_LED_* to avoid name clash.
- Don't use braces around single statement ifs.
- Fix whitespace errors.
- Remove useless CVS id and log.
arch/cris/arch-v10/drivers/gpio.c