gpio: add set_wake callback
authorBin Yang <bin.yang@intel.com>
Wed, 22 Jun 2011 09:18:10 +0000 (17:18 +0800)
committerGross, Mark <mark.gross@intel.com>
Fri, 11 Nov 2011 22:44:07 +0000 (14:44 -0800)
BZ: 14180

set_irq_wake function will check desc->chip->set_wake callback.
It will be failed to set IRQ as wake without this callback.

Change-Id: Ib0811a87973853fe024ecb91eeacc9985165a8b8
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/23785
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
drivers/gpio/langwell_gpio.c

index 674b1e8..8b84496 100644 (file)
@@ -231,11 +231,17 @@ static void lnw_irq_mask(struct irq_data *d)
 {
 }
 
+static int lnw_irq_wake(unsigned irq, unsigned on)
+{
+       return 0;
+}
+
 static struct irq_chip lnw_irqchip = {
        .name           = "LNW-GPIO",
        .irq_mask       = lnw_irq_mask,
        .irq_unmask     = lnw_irq_unmask,
        .irq_set_type   = lnw_irq_type,
+       .irq_set_wake   = lnw_irq_wake,
 };
 
 static DEFINE_PCI_DEVICE_TABLE(lnw_gpio_ids) = {   /* pin number */