diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-11 13:21:21 +0000 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-14 12:38:10 +0100 |
commit | 25a947f805b4132b69f2561589e17a0fe45552b6 (patch) | |
tree | 265221712f0b26bd67a2a4ad059aecbbe08637d9 /drivers/mfd/wm8994-irq.c | |
parent | 845aeab5f1e0ef1a85b618a1bf917520a62a9c02 (diff) | |
download | linux-25a947f805b4132b69f2561589e17a0fe45552b6.tar.bz2 |
mfd: Convert Wolfson MFD drivers to use irq_data accessor function
Actually makes the code larger rathe rthan smaller but does provide some
isolation against core API changes.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994-irq.c')
-rw-r--r-- | drivers/mfd/wm8994-irq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/wm8994-irq.c b/drivers/mfd/wm8994-irq.c index 62598840ad04..29e8faf9c01c 100644 --- a/drivers/mfd/wm8994-irq.c +++ b/drivers/mfd/wm8994-irq.c @@ -158,14 +158,14 @@ static inline struct wm8994_irq_data *irq_to_wm8994_irq(struct wm8994 *wm8994, static void wm8994_irq_lock(struct irq_data *data) { - struct wm8994 *wm8994 = data->chip_data; + struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); mutex_lock(&wm8994->irq_lock); } static void wm8994_irq_sync_unlock(struct irq_data *data) { - struct wm8994 *wm8994 = data->chip_data; + struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); int i; for (i = 0; i < ARRAY_SIZE(wm8994->irq_masks_cur); i++) { @@ -184,7 +184,7 @@ static void wm8994_irq_sync_unlock(struct irq_data *data) static void wm8994_irq_unmask(struct irq_data *data) { - struct wm8994 *wm8994 = data->chip_data; + struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, data->irq); @@ -193,7 +193,7 @@ static void wm8994_irq_unmask(struct irq_data *data) static void wm8994_irq_mask(struct irq_data *data) { - struct wm8994 *wm8994 = data->chip_data; + struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, data->irq); |