ARM: tegra: name the supply name of regulator rails
Laxman Dewangan [Fri, 24 Aug 2012 11:48:50 +0000 (16:48 +0530)]
Provide the name of the regulator rails of MAX77663 from
platform data in place of relying on the name given by
driver.

Change-Id: Ib77acefe7117115745e8414fae966b04339c6c6a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127182
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6b9befae5849dfe4eb34404883482cf3033f8591

arch/arm/mach-tegra/board-curacao-power.c
arch/arm/mach-tegra/board-dalmore-power.c

index 1cd2257..15b918d 100644 (file)
@@ -121,6 +121,7 @@ static struct max77663_regulator_fps_cfg max77663_fps_cfgs[] = {
 {                                                              \
        .init_data = {                                          \
                        .constraints = {                                \
+                               .name = max77663_rails(_id),            \
                                .min_uV = _min_uV,                      \
                                .max_uV = _max_uV,                      \
                                .valid_modes_mask = (REGULATOR_MODE_NORMAL |  \
index 150e4ae..699148a 100644 (file)
@@ -137,6 +137,7 @@ static struct max77663_regulator_platform_data max77663_regulator_pdata_##_id =\
 {                                                                      \
        .init_data = {                                                  \
                        .constraints = {                                \
+                               .name = max77663_rails(_id),            \
                                .min_uV = _min_uV,                      \
                                .max_uV = _max_uV,                      \
                                .valid_modes_mask = (REGULATOR_MODE_NORMAL |  \