arch: arm: mach-tegra: update ar0261 power funcs
Phil Breczinski [Tue, 14 Jan 2014 02:34:38 +0000 (18:34 -0800)]
Update ar0261 power_on and power_off functions to update focuser
power state.

Bug 1439565

Change-Id: I19671239b66bf0ca6f1a6b51134d8d4800e0773b
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/355324
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

arch/arm/mach-tegra/board-ardbeg-sensors.c

index a52e6e4..099ab48 100644 (file)
@@ -783,6 +783,7 @@ static int ardbeg_ad5823_power_on(struct ad5823_platform_data *pdata)
 
        pr_info("%s\n", __func__);
        gpio_set_value_cansleep(pdata->gpio, 1);
+       pdata->pwr_dev = AD5823_PWR_DEV_ON;
 
        return err;
 }
@@ -791,6 +792,7 @@ static int ardbeg_ad5823_power_off(struct ad5823_platform_data *pdata)
 {
        pr_info("%s\n", __func__);
        gpio_set_value_cansleep(pdata->gpio, 0);
+       pdata->pwr_dev = AD5823_PWR_DEV_OFF;
 
        return 0;
 }