diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-11 08:21:21 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-14 06:38:10 -0500 |
commit | 25a947f805b4132b69f2561589e17a0fe45552b6 (patch) | |
tree | 265221712f0b26bd67a2a4ad059aecbbe08637d9 /drivers/mfd/wm8350-irq.c | |
parent | 845aeab5f1e0ef1a85b618a1bf917520a62a9c02 (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/wm8350-irq.c')
-rw-r--r-- | drivers/mfd/wm8350-irq.c | 8 |
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) | |||
419 | 419 | ||
420 | static void wm8350_irq_lock(struct irq_data *data) | 420 | static void wm8350_irq_lock(struct irq_data *data) |
421 | { | 421 | { |
422 | struct wm8350 *wm8350 = data->chip_data; | 422 | struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); |
423 | 423 | ||
424 | mutex_lock(&wm8350->irq_lock); | 424 | mutex_lock(&wm8350->irq_lock); |
425 | } | 425 | } |
426 | 426 | ||
427 | static void wm8350_irq_sync_unlock(struct irq_data *data) | 427 | static void wm8350_irq_sync_unlock(struct irq_data *data) |
428 | { | 428 | { |
429 | struct wm8350 *wm8350 = data->chip_data; | 429 | struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); |
430 | int i; | 430 | int i; |
431 | 431 | ||
432 | for (i = 0; i < ARRAY_SIZE(wm8350->irq_masks); i++) { | 432 | for (i = 0; i < ARRAY_SIZE(wm8350->irq_masks); i++) { |
@@ -444,7 +444,7 @@ static void wm8350_irq_sync_unlock(struct irq_data *data) | |||
444 | 444 | ||
445 | static void wm8350_irq_enable(struct irq_data *data) | 445 | static void wm8350_irq_enable(struct irq_data *data) |
446 | { | 446 | { |
447 | struct wm8350 *wm8350 = data->chip_data; | 447 | struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); |
448 | struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350, | 448 | struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350, |
449 | data->irq); | 449 | data->irq); |
450 | 450 | ||
@@ -453,7 +453,7 @@ static void wm8350_irq_enable(struct irq_data *data) | |||
453 | 453 | ||
454 | static void wm8350_irq_disable(struct irq_data *data) | 454 | static void wm8350_irq_disable(struct irq_data *data) |
455 | { | 455 | { |
456 | struct wm8350 *wm8350 = data->chip_data; | 456 | struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); |
457 | struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350, | 457 | struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350, |
458 | data->irq); | 458 | data->irq); |
459 | 459 | ||