diff options
Diffstat (limited to 'include/linux/mfd/mc13783.h')
-rw-r--r-- | include/linux/mfd/mc13783.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/include/linux/mfd/mc13783.h b/include/linux/mfd/mc13783.h index 35680409b8cf..8895d9d8879c 100644 --- a/include/linux/mfd/mc13783.h +++ b/include/linux/mfd/mc13783.h | |||
@@ -26,10 +26,30 @@ int mc13783_irq_request(struct mc13783 *mc13783, int irq, | |||
26 | int mc13783_irq_request_nounmask(struct mc13783 *mc13783, int irq, | 26 | int 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); |
28 | int mc13783_irq_free(struct mc13783 *mc13783, int irq, void *dev); | 28 | int mc13783_irq_free(struct mc13783 *mc13783, int irq, void *dev); |
29 | int mc13783_ackirq(struct mc13783 *mc13783, int irq); | ||
30 | 29 | ||
31 | int mc13783_mask(struct mc13783 *mc13783, int irq); | 30 | int mc13783_irq_mask(struct mc13783 *mc13783, int irq); |
32 | int mc13783_unmask(struct mc13783 *mc13783, int irq); | 31 | int mc13783_irq_unmask(struct mc13783 *mc13783, int irq); |
32 | int mc13783_irq_status(struct mc13783 *mc13783, int irq, | ||
33 | int *enabled, int *pending); | ||
34 | int mc13783_irq_ack(struct mc13783 *mc13783, int irq); | ||
35 | |||
36 | static inline int mc13783_mask(struct mc13783 *mc13783, int irq) __deprecated; | ||
37 | static inline int mc13783_mask(struct mc13783 *mc13783, int irq) | ||
38 | { | ||
39 | return mc13783_irq_mask(mc13783, irq); | ||
40 | } | ||
41 | |||
42 | static inline int mc13783_unmask(struct mc13783 *mc13783, int irq) __deprecated; | ||
43 | static inline int mc13783_unmask(struct mc13783 *mc13783, int irq) | ||
44 | { | ||
45 | return mc13783_irq_unmask(mc13783, irq); | ||
46 | } | ||
47 | |||
48 | static inline int mc13783_ackirq(struct mc13783 *mc13783, int irq) __deprecated; | ||
49 | static inline int mc13783_ackirq(struct mc13783 *mc13783, int irq) | ||
50 | { | ||
51 | return mc13783_irq_ack(mc13783, irq); | ||
52 | } | ||
33 | 53 | ||
34 | #define MC13783_ADC0 43 | 54 | #define MC13783_ADC0 43 |
35 | #define MC13783_ADC0_ADREFEN (1 << 10) | 55 | #define MC13783_ADC0_ADREFEN (1 << 10) |
@@ -108,6 +128,8 @@ int mc13783_adc_do_conversion(struct mc13783 *mc13783, unsigned int mode, | |||
108 | #define MC13783_REGU_V2 28 | 128 | #define MC13783_REGU_V2 28 |
109 | #define MC13783_REGU_V3 29 | 129 | #define MC13783_REGU_V3 29 |
110 | #define MC13783_REGU_V4 30 | 130 | #define MC13783_REGU_V4 30 |
131 | #define MC13783_REGU_PWGT1SPI 31 | ||
132 | #define MC13783_REGU_PWGT2SPI 32 | ||
111 | 133 | ||
112 | #define MC13783_IRQ_ADCDONE 0 | 134 | #define MC13783_IRQ_ADCDONE 0 |
113 | #define MC13783_IRQ_ADCBISDONE 1 | 135 | #define MC13783_IRQ_ADCBISDONE 1 |