From 5dc33346a14f9d1df23a2c8e7fac0f8c2dc5161f Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Mon, 13 Dec 2010 14:35:07 -0800 Subject: [PATCH] --- yaml --- r: 225693 b: refs/heads/master c: 940f2efc28564c478033b075bcfc8e7b694831e1 h: refs/heads/master i: 225691: 8e86aac48678d417cf02ad9960b76278f60a7145 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-msm/board-trout-gpio.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d0f3d92225c8..dfe75d589c73 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 294b2dea83ba0a6d6034a7521bc62c317efab17b +refs/heads/master: 940f2efc28564c478033b075bcfc8e7b694831e1 diff --git a/trunk/arch/arm/mach-msm/board-trout-gpio.c b/trunk/arch/arm/mach-msm/board-trout-gpio.c index c50f3afc3134..f8c09ef6666f 100644 --- a/trunk/arch/arm/mach-msm/board-trout-gpio.c +++ b/trunk/arch/arm/mach-msm/board-trout-gpio.c @@ -72,6 +72,13 @@ static int msm_gpiolib_direction_output(struct gpio_chip *chip, return 0; } +static int trout_gpio_to_irq(struct gpio_chip *chip, unsigned offset) +{ + struct msm_gpio_chip *msm_gpio = to_msm_gpio_chip(chip); + + return TROUT_GPIO_TO_INT(offset + chip->base); +} + #define TROUT_GPIO_BANK(name, reg_num, base_gpio, shadow_val) \ { \ .chip = { \ @@ -80,6 +87,7 @@ static int msm_gpiolib_direction_output(struct gpio_chip *chip, .direction_output = msm_gpiolib_direction_output, \ .get = msm_gpiolib_get, \ .set = msm_gpiolib_set, \ + .to_irq = trout_gpio_to_irq, \ .base = base_gpio, \ .ngpio = 8, \ }, \