aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm831x-irq.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-11 08:21:21 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-14 06:38:10 -0500
commit25a947f805b4132b69f2561589e17a0fe45552b6 (patch)
tree265221712f0b26bd67a2a4ad059aecbbe08637d9 /drivers/mfd/wm831x-irq.c
parent845aeab5f1e0ef1a85b618a1bf917520a62a9c02 (diff)
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/wm831x-irq.c')
-rw-r--r--drivers/mfd/wm831x-irq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mfd/wm831x-irq.c b/drivers/mfd/wm831x-irq.c
index eae52726bf3e..ee88f6a05cec 100644
--- a/drivers/mfd/wm831x-irq.c
+++ b/drivers/mfd/wm831x-irq.c
@@ -347,14 +347,14 @@ static inline struct wm831x_irq_data *irq_to_wm831x_irq(struct wm831x *wm831x,
347 347
348static void wm831x_irq_lock(struct irq_data *data) 348static void wm831x_irq_lock(struct irq_data *data)
349{ 349{
350 struct wm831x *wm831x = data->chip_data; 350 struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
351 351
352 mutex_lock(&wm831x->irq_lock); 352 mutex_lock(&wm831x->irq_lock);
353} 353}
354 354
355static void wm831x_irq_sync_unlock(struct irq_data *data) 355static void wm831x_irq_sync_unlock(struct irq_data *data)
356{ 356{
357 struct wm831x *wm831x = data->chip_data; 357 struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
358 int i; 358 int i;
359 359
360 for (i = 0; i < ARRAY_SIZE(wm831x->irq_masks_cur); i++) { 360 for (i = 0; i < ARRAY_SIZE(wm831x->irq_masks_cur); i++) {
@@ -373,7 +373,7 @@ static void wm831x_irq_sync_unlock(struct irq_data *data)
373 373
374static void wm831x_irq_unmask(struct irq_data *data) 374static void wm831x_irq_unmask(struct irq_data *data)
375{ 375{
376 struct wm831x *wm831x = data->chip_data; 376 struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
377 struct wm831x_irq_data *irq_data = irq_to_wm831x_irq(wm831x, 377 struct wm831x_irq_data *irq_data = irq_to_wm831x_irq(wm831x,
378 data->irq); 378 data->irq);
379 379
@@ -382,7 +382,7 @@ static void wm831x_irq_unmask(struct irq_data *data)
382 382
383static void wm831x_irq_mask(struct irq_data *data) 383static void wm831x_irq_mask(struct irq_data *data)
384{ 384{
385 struct wm831x *wm831x = data->chip_data; 385 struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
386 struct wm831x_irq_data *irq_data = irq_to_wm831x_irq(wm831x, 386 struct wm831x_irq_data *irq_data = irq_to_wm831x_irq(wm831x,
387 data->irq); 387 data->irq);
388 388
@@ -391,7 +391,7 @@ static void wm831x_irq_mask(struct irq_data *data)
391 391
392static int wm831x_irq_set_type(struct irq_data *data, unsigned int type) 392static int wm831x_irq_set_type(struct irq_data *data, unsigned int type)
393{ 393{
394 struct wm831x *wm831x = data->chip_data; 394 struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
395 int val, irq; 395 int val, irq;
396 396
397 irq = data->irq - wm831x->irq_base; 397 irq = data->irq - wm831x->irq_base;