mfd: tps80031: gpadc: register as mfd sub device
Laxman Dewangan [Sun, 5 Aug 2012 07:57:08 +0000 (12:57 +0530)]
Register General Purpose ADC driver of TPS80031 as
mfd sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: Ib3f86f05716baef96ee534eec5ae262627c6a853
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121136
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

arch/arm/mach-tegra/board-enterprise-power.c
drivers/mfd/tps80031.c

index 86f0bcd..cfcfe9e 100644 (file)
@@ -333,19 +333,6 @@ static struct tps80031_bg_platform_data battery_gauge_data = {
        .battery_present = 1,
 };
 
-#define TPS_GPADC()                                    \
-       {                                               \
-               .name   = "tps80031-gpadc",             \
-       }
-
-#define TPS80031_DEVS_COMMON           \
-       TPS_GPADC()
-
-
-static struct tps80031_subdev_info tps80031_devs[] = {
-       TPS_GPADC()
-};
-
 #define TPS_REG_PDATA(_id, _sname) &pdata_##_id##_##_sname
 static struct tps80031_regulator_platform_data *tps80031_reg_pdata_a02[] = {
        TPS_REG_PDATA(vio, a02),
index f496c36..10ae059 100644 (file)
@@ -306,6 +306,9 @@ static struct mfd_cell tps80031_cell[] = {
                .name = "tps80031-rtc",
        },
        {
+               .name = "tps80031-gpadc",
+       },
+       {
                .name = "tps80031-battery-gauge",
        },
        {