summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-01-31 14:30:25 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:43:10 -0800
commit1d6ff5b55e6887464c6a4029dd0857bb8aacd440 (patch)
treed43d02957a92f0393543fd89b2ecc45323636ea3 /include
parent489978b02e99a1ff621c1579c66ddf48c1ee055b (diff)
arm: regulator: gpio_switch: enable/disable of rail through board apis
Supporting the enabling/disabling of rail through board supplied function. This is require if rail control is done through special sequence. Original-Change-Id: Iec7de658fe427a2098705a5363733887f87f6c1d Reviewed-on: http://git-master/r/17658 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Original-Change-Id: Ibe3d6e9e15e92a9ac5f381ac26666fb4f69635db Rebase-Id: R11dd4124004939de2cf4ebd9f102cde2427fc206
Diffstat (limited to 'include')
-rwxr-xr-xinclude/linux/gpio-switch-regulator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/gpio-switch-regulator.h b/include/linux/gpio-switch-regulator.h
index 00aa2948844a..2b02e4bfd5b4 100755
--- a/include/linux/gpio-switch-regulator.h
+++ b/include/linux/gpio-switch-regulator.h
@@ -44,11 +44,15 @@ struct gpio_switch_regulator_platform_data {
int id;
int gpio_nr;
int active_low;
+ int pin_group;
int init_state;
int *voltages;
unsigned n_voltages;
struct regulator_consumer_supply *consumer_supplies;
int num_consumer_supplies;
struct regulation_constraints constraints;
+ int (*enable_rail)(struct gpio_switch_regulator_platform_data *pdata);
+ int (*disable_rail)(struct gpio_switch_regulator_platform_data *pdata);
+
};
#endif