diff options
author | Dmitry Artamonow <mad_soft@inbox.ru> | 2009-03-15 14:14:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-15 16:08:20 -0400 |
commit | 607b067e161185d5c441aa366ff9fccd4fd676cb (patch) | |
tree | 29c7ee2c11793ba16f3c4e99fddb7d8908dff510 /arch/arm/mach-sa1100/include/mach | |
parent | 104a416d80fca22284319b06eff87b6f632a3649 (diff) |
[ARM] 5427/1: h3600: ipaq_model_ops final cleanup
Since now ipaq_model_ops used only for accessing h3600 EGPIOs,
drop it completely and use assign_h3600_egpio() directly.
Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/include/mach')
-rw-r--r-- | arch/arm/mach-sa1100/include/mach/h3600.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/mach-sa1100/include/mach/h3600.h b/arch/arm/mach-sa1100/include/mach/h3600.h index 33fc4bcfd3ee..2827faa47421 100644 --- a/arch/arm/mach-sa1100/include/mach/h3600.h +++ b/arch/arm/mach-sa1100/include/mach/h3600.h | |||
@@ -93,17 +93,7 @@ enum ipaq_egpio_type { | |||
93 | IPAQ_EGPIO_LCD_ENABLE, /* Enable/disable LCD controller */ | 93 | IPAQ_EGPIO_LCD_ENABLE, /* Enable/disable LCD controller */ |
94 | }; | 94 | }; |
95 | 95 | ||
96 | struct ipaq_model_ops { | 96 | extern void (*assign_h3600_egpio)(enum ipaq_egpio_type x, int level); |
97 | void (*control)(enum ipaq_egpio_type, int); | ||
98 | }; | ||
99 | |||
100 | extern struct ipaq_model_ops ipaq_model_ops; | ||
101 | |||
102 | static __inline__ void assign_h3600_egpio(enum ipaq_egpio_type x, int level) | ||
103 | { | ||
104 | if (ipaq_model_ops.control) | ||
105 | ipaq_model_ops.control(x,level); | ||
106 | } | ||
107 | 97 | ||
108 | #endif /* ASSEMBLY */ | 98 | #endif /* ASSEMBLY */ |
109 | 99 | ||