diff options
| author | Cyril Chemparathy <[email protected]> | 2010-05-01 18:37:53 -0400 |
|---|---|---|
| committer | Kevin Hilman <[email protected]> | 2010-05-06 15:02:08 -0700 |
| commit | c12f415a9144a76dc99df34f56ce3022207ad1d0 (patch) | |
| tree | 6fa81f4b2494ab8d0bf4f6bd7f71b5c0bdae8ecb /include/linux/timerqueue.h | |
| parent | 99e9e52de635728d7c89a0fdf79b307f3082cf3a (diff) | |
Davinci: gpio - register layout invariant inlines
This patch renders the inlined gpio accessors in gpio.h independent of the
underlying controller's register layout. This is done by including three new
fields in davinci_gpio_controller to hold the addresses of the set, clear, and
in data registers.
Other changes:
1. davinci_gpio_regs structure definition moved to gpio.c. This structure is
no longer common across all davinci socs (davinci_gpio_controller is).
2. controller base address calculation code (gpio2controller()) moved to
gpio.c as this was no longer necessary for the inline implementation.
3. modified inline range checks to use davinci_soc_info.gpio_num instead of
DAVINCI_N_GPIO.
Signed-off-by: Cyril Chemparathy <[email protected]>
Tested-by: Sandeep Paulraj <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions