On Thu, Jan 3, 2013 at 11:46 AM, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote:The gpio-generic driver is for the MMIO based interface. This is for the PMIC-Palma which is in i2c interface and so need to have register access through the i2c call exposed by palma mfd driver.
Add gpio driver for TI Palmas series PMIC. This has 8 gpio which canThis driver seems unnecessary. Can't you just use
work as input/output.
Signed-off-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>
drivers/gpio/gpio-generic.c ?
+static int palmas_gpio_to_irq(struct gpio_chip *gc, unsigned offset)Why are you implementing this for a driver which does not even expose
+{
+ struct palmas_gpio *pg = to_palmas_gpio(gc);
+ struct palmas *palmas = pg->palmas;
+
+ return palmas_irq_get_virq(palmas, PALMAS_GPIO_0_IRQ + offset);
+}
the ability to trigger IRQs? If it's supposed to support IRQs it should
register a struct irq_chip.