]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
pmic: pmic_pfuze100: Use a shorter name for PMIC name
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 1 Aug 2014 11:50:03 +0000 (08:50 -0300)
committerStefano Babic <sbabic@denx.de>
Fri, 8 Aug 2014 08:29:41 +0000 (10:29 +0200)
It is redundant to use 'PFUZE100_PMIC' as the PMIC name because we already
know it is a PMIC.

Call it simply 'PFUZE100' instead.

Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Markus Niebel <Markus.Niebel@tq-group.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx6sabresd/mx6sabresd.c
board/freescale/mx6sxsabresd/mx6sxsabresd.c
board/gateworks/gw_ventana/gw_ventana.c
board/tqc/tqma6/tqma6.c
drivers/power/pmic/pmic_pfuze100.c

index d7c4b4f148cba41f4e8a499f9a4a4bd445d70311..80c8ebdafcc39da661abaf0833ad11e70ce04ee9 100644 (file)
@@ -466,7 +466,7 @@ static int pfuze_init(void)
        if (ret)
                return ret;
 
-       p = pmic_get("PFUZE100_PMIC");
+       p = pmic_get("PFUZE100");
        ret = pmic_probe(p);
        if (ret)
                return ret;
index 24d6a5196ebd64a7ba14c4be87f4100a382001d5..6cd2b4af9fecd1c86795d80cf438ebf8cee5a5c7 100644 (file)
@@ -90,7 +90,7 @@ static int pfuze_init(void)
        if (ret)
                return ret;
 
-       p = pmic_get("PFUZE100_PMIC");
+       p = pmic_get("PFUZE100");
        ret = pmic_probe(p);
        if (ret)
                return ret;
index 9967f80d5ef8f41ad9248d6352d1f821befa4664..ae1cf8702e3a0318b630e35f3b638ec4e4d4122d 100644 (file)
@@ -903,7 +903,7 @@ int power_init_board(void)
        /* configure PFUZE100 PMIC */
        if (board_type == GW54xx || board_type == GW54proto) {
                power_pfuze100_init(I2C_PMIC);
-               p = pmic_get("PFUZE100_PMIC");
+               p = pmic_get("PFUZE100");
                if (p && !pmic_probe(p)) {
                        pmic_reg_read(p, PFUZE100_DEVICEID, &reg);
                        printf("PMIC:  PFUZE100 ID=0x%02x\n", reg);
index 69c4551ecae1f7e33d683a457591e305f01ae0cd..b552bb8d7eee1ff099a973bb2e1e9bfff61c4e32 100644 (file)
@@ -229,10 +229,10 @@ int board_late_init(void)
         * fixed in generic power code
         */
        power_pfuze100_init(TQMA6_PFUZE100_I2C_BUS);
-       p = pmic_get("PFUZE100_PMIC");
+       p = pmic_get("PFUZE100");
        if (p && !pmic_probe(p)) {
                pmic_reg_read(p, PFUZE100_DEVICEID, &reg);
-               printf("PMIC: PFUZE100_PMIC ID=0x%02x\n", reg);
+               printf("PMIC: PFUZE100 ID=0x%02x\n", reg);
        }
 
        tqma6_bb_board_late_init();
index 21f12d2564ee00e1eb11885d3167e995a03e233b..22a04c02a3c149013a828c023b242f3848645df6 100644 (file)
@@ -13,7 +13,7 @@
 
 int power_pfuze100_init(unsigned char bus)
 {
-       static const char name[] = "PFUZE100_PMIC";
+       static const char name[] = "PFUZE100";
        struct pmic *p = pmic_alloc();
 
        if (!p) {