summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorErik Lilliebjerg <elilliebjerg@nvidia.com>2011-04-19 05:32:32 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-04-19 20:59:35 -0700
commitb2dee92789a143ca669954f015615da875f23cf6 (patch)
tree6a6d742642cfff3ec6c4af84b8e157776b8aa5d8 /arch
parente264df04a60296dcf75474ff38ffb087a4704ce9 (diff)
ARM: tegra: ventana: SSL3250A board level support
Fix SSL3250A camera flash I2C errors. Bug 778859 Change-Id: I086eb863cce343a107f5f382d2b96eecf70d6902 Reviewed-on: http://git-master/r/28202 Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com> Tested-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-ventana-sensors.c8
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 = {