Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230987
b: refs/heads/master
c: baa3f63
h: refs/heads/master
i:
  230985: 8d49fcb
  230983: c64431e
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 14, 2011
1 parent 17065ab commit 0538662
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: fdcc475b968f4715ce7a214c061c97a95c77fd21
refs/heads/master: baa3f63b88c9138bb923a29a3d5fddc204d1f5e6
32 changes: 17 additions & 15 deletions trunk/drivers/mfd/wm8994-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,16 @@ static inline struct wm8994_irq_data *irq_to_wm8994_irq(struct wm8994 *wm8994,
return &wm8994_irqs[irq - wm8994->irq_base];
}

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

mutex_lock(&wm8994->irq_lock);
}

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

for (i = 0; i < ARRAY_SIZE(wm8994->irq_masks_cur); i++) {
Expand All @@ -182,28 +182,30 @@ static void wm8994_irq_sync_unlock(unsigned int irq)
mutex_unlock(&wm8994->irq_lock);
}

static void wm8994_irq_unmask(unsigned int irq)
static void wm8994_irq_unmask(struct irq_data *data)
{
struct wm8994 *wm8994 = get_irq_chip_data(irq);
struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, irq);
struct wm8994 *wm8994 = data->chip_data;
struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994,
data->irq);

wm8994->irq_masks_cur[irq_data->reg - 1] &= ~irq_data->mask;
}

static void wm8994_irq_mask(unsigned int irq)
static void wm8994_irq_mask(struct irq_data *data)
{
struct wm8994 *wm8994 = get_irq_chip_data(irq);
struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, irq);
struct wm8994 *wm8994 = data->chip_data;
struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994,
data->irq);

wm8994->irq_masks_cur[irq_data->reg - 1] |= irq_data->mask;
}

static struct irq_chip wm8994_irq_chip = {
.name = "wm8994",
.bus_lock = wm8994_irq_lock,
.bus_sync_unlock = wm8994_irq_sync_unlock,
.mask = wm8994_irq_mask,
.unmask = wm8994_irq_unmask,
.name = "wm8994",
.irq_bus_lock = wm8994_irq_lock,
.irq_bus_sync_unlock = wm8994_irq_sync_unlock,
.irq_mask = wm8994_irq_mask,
.irq_unmask = wm8994_irq_unmask,
};

/* The processing of the primary interrupt occurs in a thread so that
Expand Down

0 comments on commit 0538662

Please sign in to comment.