aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-03-05 16:44:25 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 14:26:47 -0500
commit57205026da070b59e9546df352fe465f1aeacf99 (patch)
treeff2730cd37ba499324dba013fb82f579ea0e3530 /include/linux/mfd
parent2a7a06a0cdd86d572e91657603180da5992be6d3 (diff)
mc13783: rename mc13783_{{un,}mask,ack_irq} to have a mc13783_irq prefix
In the source file group these functions together. The mc13783 header file provides fallback implementations for the old names to prevent build failures. When all users of the old names are fixed to use the new names these can go away. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Gortmaker <p_gortmaker@yahoo.com> Cc: Valentin Longchamp <valentin.longchamp@epfl.ch> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/mc13783.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/include/linux/mfd/mc13783.h b/include/linux/mfd/mc13783.h
index 94cb51a64037..b8b9f3b4f3e2 100644
--- a/include/linux/mfd/mc13783.h
+++ b/include/linux/mfd/mc13783.h
@@ -26,10 +26,28 @@ int mc13783_irq_request(struct mc13783 *mc13783, int irq,
26int mc13783_irq_request_nounmask(struct mc13783 *mc13783, int irq, 26int mc13783_irq_request_nounmask(struct mc13783 *mc13783, int irq,
27 irq_handler_t handler, const char *name, void *dev); 27 irq_handler_t handler, const char *name, void *dev);
28int mc13783_irq_free(struct mc13783 *mc13783, int irq, void *dev); 28int mc13783_irq_free(struct mc13783 *mc13783, int irq, void *dev);
29int mc13783_ackirq(struct mc13783 *mc13783, int irq);
30 29
31int mc13783_mask(struct mc13783 *mc13783, int irq); 30int mc13783_irq_mask(struct mc13783 *mc13783, int irq);
32int mc13783_unmask(struct mc13783 *mc13783, int irq); 31int mc13783_irq_unmask(struct mc13783 *mc13783, int irq);
32int mc13783_irq_ack(struct mc13783 *mc13783, int irq);
33
34static inline int mc13783_mask(struct mc13783 *mc13783, int irq) __deprecated;
35static inline int mc13783_mask(struct mc13783 *mc13783, int irq)
36{
37 return mc13783_irq_mask(mc13783, irq);
38}
39
40static inline int mc13783_unmask(struct mc13783 *mc13783, int irq) __deprecated;
41static inline int mc13783_unmask(struct mc13783 *mc13783, int irq)
42{
43 return mc13783_irq_unmask(mc13783, irq);
44}
45
46static inline int mc13783_ackirq(struct mc13783 *mc13783, int irq) __deprecated;
47static inline int mc13783_ackirq(struct mc13783 *mc13783, int irq)
48{
49 return mc13783_irq_ack(mc13783, irq);
50}
33 51
34#define MC13783_ADC0 43 52#define MC13783_ADC0 43
35#define MC13783_ADC0_ADREFEN (1 << 10) 53#define MC13783_ADC0_ADREFEN (1 << 10)