regulator: tps80031: rename regulator-name enums
Laxman Dewangan [Wed, 25 Jul 2012 07:57:22 +0000 (12:57 +0530)]
Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

Change-Id: I627b6ddb78a60e44da2a869c0d51dd84166302ed
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119972
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/regulator/tps80031-regulator.c

index fabba42..1635c6d 100644 (file)
@@ -891,26 +891,26 @@ static int tps80031_regulator_preinit(struct device *parent,
 
        if (tps80031_pdata->init_uV >= 0) {
                switch (ri->desc.id) {
-               case TPS80031_ID_VIO:
-               case TPS80031_ID_SMPS1:
-               case TPS80031_ID_SMPS2:
-               case TPS80031_ID_SMPS3:
-               case TPS80031_ID_SMPS4:
+               case TPS80031_REGULATOR_VIO:
+               case TPS80031_REGULATOR_SMPS1:
+               case TPS80031_REGULATOR_SMPS2:
+               case TPS80031_REGULATOR_SMPS3:
+               case TPS80031_REGULATOR_SMPS4:
                        ret = __tps80031_dcdc_set_voltage(parent, ri,
                                        tps80031_pdata->init_uV,
                                        tps80031_pdata->init_uV, 0);
                        break;
 
-               case TPS80031_ID_LDO1:
-               case TPS80031_ID_LDO2:
-               case TPS80031_ID_LDO3:
-               case TPS80031_ID_LDO4:
-               case TPS80031_ID_LDO5:
-               case TPS80031_ID_LDO6:
-               case TPS80031_ID_LDO7:
-               case TPS80031_ID_LDOUSB:
-               case TPS80031_ID_LDOLN:
-               case TPS80031_ID_VANA:
+               case TPS80031_REGULATOR_LDO1:
+               case TPS80031_REGULATOR_LDO2:
+               case TPS80031_REGULATOR_LDO3:
+               case TPS80031_REGULATOR_LDO4:
+               case TPS80031_REGULATOR_LDO5:
+               case TPS80031_REGULATOR_LDO6:
+               case TPS80031_REGULATOR_LDO7:
+               case TPS80031_REGULATOR_LDOUSB:
+               case TPS80031_REGULATOR_LDOLN:
+               case TPS80031_REGULATOR_VANA:
                        ret = __tps80031_ldo_set_voltage(parent, ri,
                                        tps80031_pdata->init_uV,
                                        tps80031_pdata->init_uV, 0);