Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231007
b: refs/heads/master
c: c91ad34
h: refs/heads/master
i:
  231005: 3bac421
  231003: d555377
  230999: d612bb1
  230991: 09c0c96
  230975: 6f5c781
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 14, 2011
1 parent aae61f3 commit 57c27e6
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 0f76aaebe8015d6a850cb03622382bacb7860398
refs/heads/master: c91ad349d084f8c034ff60fb56d41a9667f71ae4
28 changes: 13 additions & 15 deletions trunk/drivers/mfd/ab3550-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,15 +1159,16 @@ static void ab3550_mask_work(struct work_struct *work)
}
}

static void ab3550_mask(unsigned int irq)
static void ab3550_mask(struct irq_data *data)
{
unsigned long flags;
struct ab3550 *ab;
struct ab3550_platform_data *plf_data;
int irq;

ab = get_irq_chip_data(irq);
ab = irq_data_get_irq_chip_data(data);
plf_data = ab->i2c_client[0]->dev.platform_data;
irq -= plf_data->irq.base;
irq = data->irq - plf_data->irq.base;

spin_lock_irqsave(&ab->event_lock, flags);
ab->event_mask[irq / 8] |= BIT(irq % 8);
Expand All @@ -1176,15 +1177,16 @@ static void ab3550_mask(unsigned int irq)
schedule_work(&ab->mask_work);
}

static void ab3550_unmask(unsigned int irq)
static void ab3550_unmask(struct irq_data *data)
{
unsigned long flags;
struct ab3550 *ab;
struct ab3550_platform_data *plf_data;
int irq;

ab = get_irq_chip_data(irq);
ab = irq_data_get_irq_chip_data(data);
plf_data = ab->i2c_client[0]->dev.platform_data;
irq -= plf_data->irq.base;
irq = data->irq - plf_data->irq.base;

spin_lock_irqsave(&ab->event_lock, flags);
ab->event_mask[irq / 8] &= ~BIT(irq % 8);
Expand All @@ -1193,20 +1195,16 @@ static void ab3550_unmask(unsigned int irq)
schedule_work(&ab->mask_work);
}

static void noop(unsigned int irq)
static void noop(struct irq_data *data)
{
}

static struct irq_chip ab3550_irq_chip = {
.name = "ab3550-core", /* Keep the same name as the request */
.startup = NULL, /* defaults to enable */
.shutdown = NULL, /* defaults to disable */
.enable = NULL, /* defaults to unmask */
.disable = ab3550_mask, /* No default to mask in chip.c */
.ack = noop,
.mask = ab3550_mask,
.unmask = ab3550_unmask,
.end = NULL,
.irq_disable = ab3550_mask, /* No default to mask in chip.c */
.irq_ack = noop,
.irq_mask = ab3550_mask,
.irq_unmask = ab3550_unmask,
};

struct ab_family_id {
Expand Down

0 comments on commit 57c27e6

Please sign in to comment.