mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lennert Buytenhek <buytenh@wantstofly.org>
To: Mattias Wallin <mattias.wallin@stericsson.com>,
	Linus Walleij <linus.walleij@stericsson.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>, linux-kernel@vger.kernel.org
Subject: [PATCH 02/20] mfd: ab3550: irq_data conversion.
Date: Mon, 13 Dec 2010 13:29:41 +0100	[thread overview]
Message-ID: <20101213122941.GL15575@mail.wantstofly.org> (raw)
In-Reply-To: <cover.1292241952.git.buytenh@wantstofly.org>

Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
---
 drivers/mfd/ab3550-core.c |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/drivers/mfd/ab3550-core.c b/drivers/mfd/ab3550-core.c
index 8a98739..0fefb54 100644
--- a/drivers/mfd/ab3550-core.c
+++ b/drivers/mfd/ab3550-core.c
@@ -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 *d)
 {
 	unsigned long flags;
 	struct ab3550 *ab;
 	struct ab3550_platform_data *plf_data;
+	unsigned int irq;
 
-	ab = get_irq_chip_data(irq);
+	ab = irq_data_get_irq_chip_data(d);
 	plf_data = ab->i2c_client[0]->dev.platform_data;
-	irq -= plf_data->irq.base;
+	irq = d->irq - plf_data->irq.base;
 
 	spin_lock_irqsave(&ab->event_lock, flags);
 	ab->event_mask[irq / 8] |= BIT(irq % 8);
@@ -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 *d)
 {
 	unsigned long flags;
 	struct ab3550 *ab;
 	struct ab3550_platform_data *plf_data;
+	unsigned int irq;
 
-	ab = get_irq_chip_data(irq);
+	ab = irq_data_get_irq_chip_data(d);
 	plf_data = ab->i2c_client[0]->dev.platform_data;
-	irq -= plf_data->irq.base;
+	irq = d->irq - plf_data->irq.base;
 
 	spin_lock_irqsave(&ab->event_lock, flags);
 	ab->event_mask[irq / 8] &= ~BIT(irq % 8);
@@ -1193,20 +1195,20 @@ static void ab3550_unmask(unsigned int irq)
 	schedule_work(&ab->mask_work);
 }
 
-static void noop(unsigned int irq)
+static void noop(struct irq_data *d)
 {
 }
 
 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_startup	= NULL, /* defaults to enable */
+	.irq_shutdown	= NULL, /* defaults to disable */
+	.irq_enable	= NULL, /* defaults to unmask */
+	.irq_disable	= ab3550_mask, /* No default to mask in chip.c */
+	.irq_ack	= noop,
+	.irq_mask	= ab3550_mask,
+	.irq_unmask	= ab3550_unmask,
+	.irq_end	= NULL,
 };
 
 struct ab_family_id {
-- 
1.7.1


  parent reply	other threads:[~2010-12-13 12:29 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1292241952.git.buytenh@wantstofly.org>
2010-12-13 12:29 ` [PATCH 01/20] mfd: 88pm860x-core: " Lennert Buytenhek
2010-12-13 12:29 ` Lennert Buytenhek [this message]
2010-12-13 12:29 ` [PATCH 03/20] mfd: ab8500: " Lennert Buytenhek
2010-12-13 12:30 ` [PATCH 04/20] mfd: asic3: " Lennert Buytenhek
2010-12-13 12:30 ` [PATCH 05/20] mfd: ezx-pcap: " Lennert Buytenhek
2010-12-13 12:30 ` [PATCH 06/20] mfd: htc-egpio: " Lennert Buytenhek
2010-12-13 12:30 ` [PATCH 07/20] mfd: htc-i2cpld: " Lennert Buytenhek
2010-12-13 12:30 ` [PATCH 08/20] mfd: jz4740-adc: " Lennert Buytenhek
2010-12-13 20:45   ` Lars-Peter Clausen
2010-12-13 12:30 ` [PATCH 09/20] mfd: max8925: " Lennert Buytenhek
2010-12-13 12:30 ` [PATCH 10/20] mfd: max8998: " Lennert Buytenhek
2010-12-14  0:24   ` Kyungmin Park
2010-12-13 12:31 ` [PATCH 11/20] mfd: stmpe: " Lennert Buytenhek
2010-12-14  4:58   ` Rabin Vincent
2010-12-13 12:31 ` [PATCH 12/20] mfd: t7l66xb: " Lennert Buytenhek
2010-12-13 12:31 ` [PATCH 13/20] mfd: tc35892: " Lennert Buytenhek
2010-12-13 12:31 ` [PATCH 14/20] mfd: tc6393xb: " Lennert Buytenhek
2010-12-13 12:31 ` [PATCH 15/20] mfd: tps6586x: " Lennert Buytenhek
2010-12-13 12:58   ` Mike Rapoport
2010-12-13 12:31 ` [PATCH 16/20] mfd: twl4030: " Lennert Buytenhek
2010-12-13 12:31 ` [PATCH 17/20] mfd: twl6030: " Lennert Buytenhek
2010-12-13 12:53   ` Santosh Shilimkar
2010-12-20  1:04   ` Samuel Ortiz
2010-12-13 12:31 ` [PATCH 18/20] mfd: wm831x: " Lennert Buytenhek
2010-12-13 12:39   ` Mark Brown
2010-12-14  9:15     ` Lennert Buytenhek
2010-12-20  0:33     ` Samuel Ortiz
2010-12-13 12:31 ` [PATCH 19/20] mfd: wm8350: " Lennert Buytenhek
2010-12-13 12:31 ` [PATCH 20/20] mfd: wm8994: " Lennert Buytenhek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101213122941.GL15575@mail.wantstofly.org \
    --to=buytenh@wantstofly.org \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mattias.wallin@stericsson.com \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®