aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2011-01-12 20:00:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 11:03:13 -0500
commit5ffd72c674a8332b37cfd62c364bc5492e8ea4c5 (patch)
tree8428870d5bf1d13ed4226a223a06d603e78b0f02 /drivers
parent12401eeddd21a59357c9a34c39761a7d32ddd4cd (diff)
gpio: langwell_gpio: irq_data conversion
Converts irq_chips and flow handlers over to the new struct irq_data based irq_chip functions. Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca> Cc: Alan Cox <alan@linux.intel.com> Cc: Yin Kangkai <kangkai.yin@intel.com> Cc: Alek Du <alek.du@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/langwell_gpio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpio/langwell_gpio.c b/drivers/gpio/langwell_gpio.c
index 64db9dc3a275..d81cc748e77f 100644
--- a/drivers/gpio/langwell_gpio.c
+++ b/drivers/gpio/langwell_gpio.c
@@ -134,10 +134,10 @@ static int lnw_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
134 return lnw->irq_base + offset; 134 return lnw->irq_base + offset;
135} 135}
136 136
137static int lnw_irq_type(unsigned irq, unsigned type) 137static int lnw_irq_type(struct irq_data *d, unsigned type)
138{ 138{
139 struct lnw_gpio *lnw = get_irq_chip_data(irq); 139 struct lnw_gpio *lnw = irq_data_get_irq_chip_data(d);
140 u32 gpio = irq - lnw->irq_base; 140 u32 gpio = d->irq - lnw->irq_base;
141 unsigned long flags; 141 unsigned long flags;
142 u32 value; 142 u32 value;
143 void __iomem *grer = gpio_reg(&lnw->chip, gpio, GRER); 143 void __iomem *grer = gpio_reg(&lnw->chip, gpio, GRER);
@@ -162,19 +162,19 @@ static int lnw_irq_type(unsigned irq, unsigned type)
162 return 0; 162 return 0;
163} 163}
164 164
165static void lnw_irq_unmask(unsigned irq) 165static void lnw_irq_unmask(struct irq_data *d)
166{ 166{
167} 167}
168 168
169static void lnw_irq_mask(unsigned irq) 169static void lnw_irq_mask(struct irq_data *d)
170{ 170{
171} 171}
172 172
173static struct irq_chip lnw_irqchip = { 173static struct irq_chip lnw_irqchip = {
174 .name = "LNW-GPIO", 174 .name = "LNW-GPIO",
175 .mask = lnw_irq_mask, 175 .irq_mask = lnw_irq_mask,
176 .unmask = lnw_irq_unmask, 176 .irq_unmask = lnw_irq_unmask,
177 .set_type = lnw_irq_type, 177 .irq_set_type = lnw_irq_type,
178}; 178};
179 179
180static DEFINE_PCI_DEVICE_TABLE(lnw_gpio_ids) = { /* pin number */ 180static DEFINE_PCI_DEVICE_TABLE(lnw_gpio_ids) = { /* pin number */