diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-01-28 23:25:12 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:43:10 -0800 |
commit | 622f7bd7e8af51d4d44a76e2f1dfe49e261beb47 (patch) | |
tree | 076dd77e34031fa4fd3db7245e120b88ad2f029b /include | |
parent | dbbb7bee31f50dc8bb9e6510f71b9b20d893ea8b (diff) |
arm: regulator: gpio_switch: providing initial state
Providing initial state of gpio switch to enable/disable
rail during init.
Original-Change-Id: Ibf6ca7e6bd4ccb8d48c65873b1a24582de195f59
Reviewed-on: http://git-master/r/17486
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Kaushik Sen <ksen@nvidia.com>
Original-Change-Id: Ib690801d2291da92257e42bc4db572d62fd4f0be
Rebase-Id: R3eb34754d9e335a602985e2b4bef4794855f180a
Diffstat (limited to 'include')
-rwxr-xr-x | include/linux/gpio-switch-regulator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/gpio-switch-regulator.h b/include/linux/gpio-switch-regulator.h index ae2608110ef7..00aa2948844a 100755 --- a/include/linux/gpio-switch-regulator.h +++ b/include/linux/gpio-switch-regulator.h @@ -32,6 +32,7 @@ * @id: The id of the switch. * @gpio_nr: Gpio nr which controls this switch. * @active_low: true if making gpio low makes voltage output enable. + * @init_state: 1 if init_state should be active. * @voltages: Possible voltages to set at output. * @n_voltages: Number of voltages. * @num_consumer_supplies: Number of cosumer supplies. @@ -43,6 +44,7 @@ struct gpio_switch_regulator_platform_data { int id; int gpio_nr; int active_low; + int init_state; int *voltages; unsigned n_voltages; struct regulator_consumer_supply *consumer_supplies; |