diff options
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana-sensors.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-sensors.c b/arch/arm/mach-tegra/board-ventana-sensors.c index 34e0cf265b6e..03c2a038b990 100644 --- a/arch/arm/mach-tegra/board-ventana-sensors.c +++ b/arch/arm/mach-tegra/board-ventana-sensors.c @@ -176,14 +176,18 @@ static void ventana_ssl3250a_exit(void) static int ventana_ssl3250a_gpio_strb(int val) { + int prev_val; + prev_val = gpio_get_value(CAMERA_FLASH_STRB_GPIO); gpio_set_value(CAMERA_FLASH_STRB_GPIO, val); - return 0; + return prev_val; }; static int ventana_ssl3250a_gpio_act(int val) { + int prev_val; + prev_val = gpio_get_value(CAMERA_FLASH_ACT_GPIO); gpio_set_value(CAMERA_FLASH_ACT_GPIO, val); - return 0; + return prev_val; }; static struct ssl3250a_platform_data ventana_ssl3250a_data = { |