summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm8350-irq.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-11 14:21:21 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-14 12:38:10 +0100
commit25a947f805b4132b69f2561589e17a0fe45552b6 (patch)
tree265221712f0b26bd67a2a4ad059aecbbe08637d9 /drivers/mfd/wm8350-irq.c
parentmfd: Convert TWL4030 to new irq_ APIs (diff)
downloadlinux-25a947f805b4132b69f2561589e17a0fe45552b6.tar.xz
linux-25a947f805b4132b69f2561589e17a0fe45552b6.zip
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/wm8350-irq.c')
-rw-r--r--drivers/mfd/wm8350-irq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/wm8350-irq.c b/drivers/mfd/wm8350-irq.c
index ba966ae88dc3..5839966ebd85 100644
--- a/drivers/mfd/wm8350-irq.c
+++ b/drivers/mfd/wm8350-irq.c
@@ -419,14 +419,14 @@ static irqreturn_t wm8350_irq(int irq, void *irq_data)
static void wm8350_irq_lock(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
mutex_lock(&wm8350->irq_lock);
}
static void wm8350_irq_sync_unlock(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
int i;
for (i = 0; i < ARRAY_SIZE(wm8350->irq_masks); i++) {
@@ -444,7 +444,7 @@ static void wm8350_irq_sync_unlock(struct irq_data *data)
static void wm8350_irq_enable(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350,
data->irq);
@@ -453,7 +453,7 @@ static void wm8350_irq_enable(struct irq_data *data)
static void wm8350_irq_disable(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350,
data->irq);