diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-11 02:38:42 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-13 08:47:47 -0400 |
commit | 8bdca009e66bb18a990a4be1830c73acacfce331 (patch) | |
tree | 7806448fc94178b35dc74c8897c4ecc0f6abf841 /include/linux | |
parent | 6790178f55d47771fca806f6a4b3d55582065eb1 (diff) |
regulator: tps62360: make init_data of platform data to pointer.
Convert platform data member regulator_init_data to pointer type.
This will avoid the copy of entire regualator init data into
platform data member when adding dt support and it can be achieve
by simple assignment:
pdata->init_data = of_get_regulator_init_data(dev, dev->of_node);
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/regulator/tps62360.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/regulator/tps62360.h b/include/linux/regulator/tps62360.h index 6a5c1b2c751e..5e11d5055643 100644 --- a/include/linux/regulator/tps62360.h +++ b/include/linux/regulator/tps62360.h | |||
@@ -26,8 +26,6 @@ | |||
26 | #ifndef __LINUX_REGULATOR_TPS62360_H | 26 | #ifndef __LINUX_REGULATOR_TPS62360_H |
27 | #define __LINUX_REGULATOR_TPS62360_H | 27 | #define __LINUX_REGULATOR_TPS62360_H |
28 | 28 | ||
29 | #include <linux/regulator/machine.h> | ||
30 | |||
31 | /* | 29 | /* |
32 | * struct tps62360_regulator_platform_data - tps62360 regulator platform data. | 30 | * struct tps62360_regulator_platform_data - tps62360 regulator platform data. |
33 | * | 31 | * |
@@ -44,7 +42,7 @@ | |||
44 | * @vsel1_def_state: Default state of vsel1. 1 if it is high else 0. | 42 | * @vsel1_def_state: Default state of vsel1. 1 if it is high else 0. |
45 | */ | 43 | */ |
46 | struct tps62360_regulator_platform_data { | 44 | struct tps62360_regulator_platform_data { |
47 | struct regulator_init_data reg_init_data; | 45 | struct regulator_init_data *reg_init_data; |
48 | bool en_force_pwm; | 46 | bool en_force_pwm; |
49 | bool en_discharge; | 47 | bool en_discharge; |
50 | bool en_internal_pulldn; | 48 | bool en_internal_pulldn; |