summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-07 10:53:19 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-07 10:53:19 +0000
commitd7ef2474120f2a009af139754f6d387c8e83c949 (patch)
tree7b63172498900d1c63c238fd256e532b23dd411e /firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
parent235fc05e3be7508c310cfd2ff5151d30b78be971 (diff)
downloadrockbox-d7ef2474120f2a009af139754f6d387c8e83c949.tar.gz
rockbox-d7ef2474120f2a009af139754f6d387c8e83c949.zip
i.MX31/Gigabeat S minor cleaning: Make HW access more obvious in places I forgot to do earlier. Reduce the number of structs that need to be filled-out for some drivers just to simplify a little. Change some types.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25870 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
index 3d0ff977da..f4402d5617 100644
--- a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
+++ b/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
@@ -28,7 +28,7 @@
28/* Gigabeat S definitions for static GPIO event registration */ 28/* Gigabeat S definitions for static GPIO event registration */
29 29
30/* Describes single events for each GPIO1 pin */ 30/* Describes single events for each GPIO1 pin */
31static const struct gpio_event gpio1_events[] = 31const struct gpio_event gpio1_events[] =
32{ 32{
33 /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked 33 /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked
34 * interrupts become active when clearing them or if a source being 34 * interrupts become active when clearing them or if a source being
@@ -41,11 +41,3 @@ static const struct gpio_event gpio1_events[] =
41 .callback = mc13783_event, 41 .callback = mc13783_event,
42 } 42 }
43}; 43};
44
45/* Describes the events attached to GPIO1 port */
46const struct gpio_event_list gpio1_event_list =
47{
48 .ints_priority = INT_PRIO_DEFAULT,
49 .count = ARRAYLEN(gpio1_events),
50 .events = gpio1_events,
51};