regulator: palmas: remove unused macros
Laxman Dewangan [Sat, 7 Sep 2013 08:53:12 +0000 (13:53 +0530)]
Some macro defined on the driver file is no more used. Removing
such macros.

Change-Id: I3b2d837d595b012f9731f4e4f71d7de80cb66ce2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/271822
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

drivers/regulator/palmas-regulator.c

index 5a6234e..ce25c27 100644 (file)
 #include <linux/of_platform.h>
 #include <linux/regulator/of_regulator.h>
 
-#define EXT_PWR_REQ (PALMAS_EXT_CONTROL_ENABLE1 |      \
-                    PALMAS_EXT_CONTROL_ENABLE2 |       \
-                    PALMAS_EXT_CONTROL_NSLEEP)
-
 struct regs_info {
        char    *name;
        char    *sname;
@@ -1544,7 +1540,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
 
                pmic->desc[id].supply_name = palmas_regs_info[id].sname;
                config.of_node = palmas_matches[id].of_node;
-               if (roof_floor & EXT_PWR_REQ) {
+               if (roof_floor) {
                        config.ena_gpio = reg_init->enable_gpio;
                        config.ena_gpio_flags = GPIOF_OUT_INIT_HIGH;
                } else {