diff options
| author | Alexander Shiyan <shc_work@mail.ru> | 2014-06-18 13:05:40 -0400 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2014-07-09 09:58:10 -0400 |
| commit | 10f9edaeaa30468194e1dcd0e47e59b012f4cf8b (patch) | |
| tree | 21cc8d8c703b749e4a116a052817530de6309fee /include/linux | |
| parent | 215cd99a1ec70395cd5a20cd9b75d2d7af6bbe7e (diff) | |
mfd: mc13xxx: Use regmap irq framework for interrupts
This patch convert mc13xxx MFD driver to use regmap irq framework
for interrupt registration.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/mc13783.h | 1 | ||||
| -rw-r--r-- | include/linux/mfd/mc13xxx.h | 23 |
2 files changed, 16 insertions, 8 deletions
diff --git a/include/linux/mfd/mc13783.h b/include/linux/mfd/mc13783.h index a8eeda773a7b..4ff6137d8d67 100644 --- a/include/linux/mfd/mc13783.h +++ b/include/linux/mfd/mc13783.h | |||
| @@ -86,6 +86,5 @@ | |||
| 86 | #define MC13783_IRQ_HSL 43 | 86 | #define MC13783_IRQ_HSL 43 |
| 87 | #define MC13783_IRQ_ALSPTH 44 | 87 | #define MC13783_IRQ_ALSPTH 44 |
| 88 | #define MC13783_IRQ_AHSSHORT 45 | 88 | #define MC13783_IRQ_AHSSHORT 45 |
| 89 | #define MC13783_NUM_IRQ MC13XXX_NUM_IRQ | ||
| 90 | 89 | ||
| 91 | #endif /* ifndef __LINUX_MFD_MC13783_H */ | 90 | #endif /* ifndef __LINUX_MFD_MC13783_H */ |
diff --git a/include/linux/mfd/mc13xxx.h b/include/linux/mfd/mc13xxx.h index d63b1d309106..638222e43e48 100644 --- a/include/linux/mfd/mc13xxx.h +++ b/include/linux/mfd/mc13xxx.h | |||
| @@ -23,15 +23,10 @@ int mc13xxx_reg_rmw(struct mc13xxx *mc13xxx, unsigned int offset, | |||
| 23 | 23 | ||
| 24 | int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq, | 24 | int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq, |
| 25 | irq_handler_t handler, const char *name, void *dev); | 25 | irq_handler_t handler, const char *name, void *dev); |
| 26 | int mc13xxx_irq_request_nounmask(struct mc13xxx *mc13xxx, int irq, | ||
| 27 | irq_handler_t handler, const char *name, void *dev); | ||
| 28 | int mc13xxx_irq_free(struct mc13xxx *mc13xxx, int irq, void *dev); | 26 | int mc13xxx_irq_free(struct mc13xxx *mc13xxx, int irq, void *dev); |
| 29 | 27 | ||
| 30 | int mc13xxx_irq_mask(struct mc13xxx *mc13xxx, int irq); | ||
| 31 | int mc13xxx_irq_unmask(struct mc13xxx *mc13xxx, int irq); | ||
| 32 | int mc13xxx_irq_status(struct mc13xxx *mc13xxx, int irq, | 28 | int mc13xxx_irq_status(struct mc13xxx *mc13xxx, int irq, |
| 33 | int *enabled, int *pending); | 29 | int *enabled, int *pending); |
| 34 | int mc13xxx_irq_ack(struct mc13xxx *mc13xxx, int irq); | ||
| 35 | 30 | ||
| 36 | int mc13xxx_get_flags(struct mc13xxx *mc13xxx); | 31 | int mc13xxx_get_flags(struct mc13xxx *mc13xxx); |
| 37 | 32 | ||
| @@ -39,6 +34,22 @@ int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, | |||
| 39 | unsigned int mode, unsigned int channel, | 34 | unsigned int mode, unsigned int channel, |
| 40 | u8 ato, bool atox, unsigned int *sample); | 35 | u8 ato, bool atox, unsigned int *sample); |
| 41 | 36 | ||
| 37 | /* Deprecated calls */ | ||
| 38 | static inline int mc13xxx_irq_ack(struct mc13xxx *mc13xxx, int irq) | ||
| 39 | { | ||
| 40 | return 0; | ||
| 41 | } | ||
| 42 | |||
| 43 | static inline int mc13xxx_irq_request_nounmask(struct mc13xxx *mc13xxx, int irq, | ||
| 44 | irq_handler_t handler, | ||
| 45 | const char *name, void *dev) | ||
| 46 | { | ||
| 47 | return mc13xxx_irq_request(mc13xxx, irq, handler, name, dev); | ||
| 48 | } | ||
| 49 | |||
| 50 | int mc13xxx_irq_mask(struct mc13xxx *mc13xxx, int irq); | ||
| 51 | int mc13xxx_irq_unmask(struct mc13xxx *mc13xxx, int irq); | ||
| 52 | |||
| 42 | #define MC13783_AUDIO_RX0 36 | 53 | #define MC13783_AUDIO_RX0 36 |
| 43 | #define MC13783_AUDIO_RX1 37 | 54 | #define MC13783_AUDIO_RX1 37 |
| 44 | #define MC13783_AUDIO_TX 38 | 55 | #define MC13783_AUDIO_TX 38 |
| @@ -68,8 +79,6 @@ int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, | |||
| 68 | #define MC13XXX_IRQ_THWARNH 37 | 79 | #define MC13XXX_IRQ_THWARNH 37 |
| 69 | #define MC13XXX_IRQ_CLK 38 | 80 | #define MC13XXX_IRQ_CLK 38 |
| 70 | 81 | ||
| 71 | #define MC13XXX_NUM_IRQ 46 | ||
| 72 | |||
| 73 | struct regulator_init_data; | 82 | struct regulator_init_data; |
| 74 | 83 | ||
| 75 | struct mc13xxx_regulator_init_data { | 84 | struct mc13xxx_regulator_init_data { |
