diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-01-28 23:25:12 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:50:26 -0700 |
commit | 35d0e539f838153a8f246c477a0d07001d9dac3a (patch) | |
tree | 17d80cf8100a66675dc5210bb319c07c8503dc80 /include | |
parent | 980f338c4f2595f21a7b1e2bad629a190ca84084 (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>
Change-Id: Ib690801d2291da92257e42bc4db572d62fd4f0be
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; |