mfd: arizona: Change fast_start pdata name to better reflect functionality
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 21 May 2013 13:56:58 +0000 (14:56 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 May 2013 17:41:54 +0000 (12:41 -0500)
The bit in the register enables MICBIAS fast startup when clear not when
set. This patch changes the name of this pdata option to soft_start to
better match the functionality. We rename rather than invert the
handling to keep the same default functionality, which is fast start
active.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/mfd/arizona-core.c
include/linux/mfd/arizona/pdata.h

index 437f199fe5f26299371e515714e6c92f915760fd..74b4481754fdcb2679513dde2046266a481e040e 100644 (file)
@@ -860,7 +860,7 @@ int arizona_dev_init(struct arizona *arizona)
                if (arizona->pdata.micbias[i].discharge)
                        val |= ARIZONA_MICB1_DISCH;
 
-               if (arizona->pdata.micbias[i].fast_start)
+               if (arizona->pdata.micbias[i].soft_start)
                        val |= ARIZONA_MICB1_RATE;
 
                if (arizona->pdata.micbias[i].bypass)
index 80dead1f710014564bf07319945025e40faca17e..12a5c135c746d9c69be4199a022f4d3519920f08 100644 (file)
@@ -77,7 +77,7 @@ struct arizona_micbias {
        int mV;                    /** Regulated voltage */
        unsigned int ext_cap:1;    /** External capacitor fitted */
        unsigned int discharge:1;  /** Actively discharge */
-       unsigned int fast_start:1; /** Enable aggressive startup ramp rate */
+       unsigned int soft_start:1; /** Disable aggressive startup ramp rate */
        unsigned int bypass:1;     /** Use bypass mode */
 };