Skip to content

Commit

Permalink
mfd: Convert ezx-pcap to new irq_ methods
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
buytenh authored and Samuel Ortiz committed Jan 14, 2011
1 parent 9505a0a commit c232f22
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions drivers/mfd/ezx-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,26 @@ int pcap_to_irq(struct pcap_chip *pcap, int irq)
}
EXPORT_SYMBOL_GPL(pcap_to_irq);

static void pcap_mask_irq(unsigned int irq)
static void pcap_mask_irq(struct irq_data *d)
{
struct pcap_chip *pcap = get_irq_chip_data(irq);
struct pcap_chip *pcap = irq_data_get_irq_chip_data(d);

pcap->msr |= 1 << irq_to_pcap(pcap, irq);
pcap->msr |= 1 << irq_to_pcap(pcap, d->irq);
queue_work(pcap->workqueue, &pcap->msr_work);
}

static void pcap_unmask_irq(unsigned int irq)
static void pcap_unmask_irq(struct irq_data *d)
{
struct pcap_chip *pcap = get_irq_chip_data(irq);
struct pcap_chip *pcap = irq_data_get_irq_chip_data(d);

pcap->msr &= ~(1 << irq_to_pcap(pcap, irq));
pcap->msr &= ~(1 << irq_to_pcap(pcap, d->irq));
queue_work(pcap->workqueue, &pcap->msr_work);
}

static struct irq_chip pcap_irq_chip = {
.name = "pcap",
.mask = pcap_mask_irq,
.unmask = pcap_unmask_irq,
.name = "pcap",
.irq_mask = pcap_mask_irq,
.irq_unmask = pcap_unmask_irq,
};

static void pcap_msr_work(struct work_struct *work)
Expand Down Expand Up @@ -217,7 +217,7 @@ static void pcap_irq_handler(unsigned int irq, struct irq_desc *desc)
{
struct pcap_chip *pcap = get_irq_data(irq);

desc->chip->ack(irq);
desc->irq_data.chip->irq_ack(&desc->irq_data);
queue_work(pcap->workqueue, &pcap->isr_work);
return;
}
Expand Down

0 comments on commit c232f22

Please sign in to comment.