Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230986
b: refs/heads/master
c: fdcc475
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 14, 2011
1 parent 8d49fcb commit 17065ab
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba81cd393348b504ecc80d5fc363857f49410d5e
refs/heads/master: fdcc475b968f4715ce7a214c061c97a95c77fd21
32 changes: 17 additions & 15 deletions trunk/drivers/mfd/wm8350-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,16 +417,16 @@ static irqreturn_t wm8350_irq(int irq, void *irq_data)
return IRQ_HANDLED;
}

static void wm8350_irq_lock(unsigned int irq)
static void wm8350_irq_lock(struct irq_data *data)
{
struct wm8350 *wm8350 = get_irq_chip_data(irq);
struct wm8350 *wm8350 = data->chip_data;

mutex_lock(&wm8350->irq_lock);
}

static void wm8350_irq_sync_unlock(unsigned int irq)
static void wm8350_irq_sync_unlock(struct irq_data *data)
{
struct wm8350 *wm8350 = get_irq_chip_data(irq);
struct wm8350 *wm8350 = data->chip_data;
int i;

for (i = 0; i < ARRAY_SIZE(wm8350->irq_masks); i++) {
Expand All @@ -442,28 +442,30 @@ static void wm8350_irq_sync_unlock(unsigned int irq)
mutex_unlock(&wm8350->irq_lock);
}

static void wm8350_irq_enable(unsigned int irq)
static void wm8350_irq_enable(struct irq_data *data)
{
struct wm8350 *wm8350 = get_irq_chip_data(irq);
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350, irq);
struct wm8350 *wm8350 = data->chip_data;
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350,
data->irq);

wm8350->irq_masks[irq_data->reg] &= ~irq_data->mask;
}

static void wm8350_irq_disable(unsigned int irq)
static void wm8350_irq_disable(struct irq_data *data)
{
struct wm8350 *wm8350 = get_irq_chip_data(irq);
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350, irq);
struct wm8350 *wm8350 = data->chip_data;
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350,
data->irq);

wm8350->irq_masks[irq_data->reg] |= irq_data->mask;
}

static struct irq_chip wm8350_irq_chip = {
.name = "wm8350",
.bus_lock = wm8350_irq_lock,
.bus_sync_unlock = wm8350_irq_sync_unlock,
.disable = wm8350_irq_disable,
.enable = wm8350_irq_enable,
.name = "wm8350",
.irq_bus_lock = wm8350_irq_lock,
.irq_bus_sync_unlock = wm8350_irq_sync_unlock,
.irq_disable = wm8350_irq_disable,
.irq_enable = wm8350_irq_enable,
};

int wm8350_irq_init(struct wm8350 *wm8350, int irq,
Expand Down

0 comments on commit 17065ab

Please sign in to comment.