scsi: ufs: Remove unused min_uA field in struct ufs_vreg
authorStanley Chu <stanley.chu@mediatek.com>
Thu, 28 Mar 2019 09:16:23 +0000 (17:16 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:11:35 +0000 (23:11 -0400)
There are two fields related to regulator current limit in struct ufs_vreg:
"min_uA" and "max_uA".

"max_uA" is probed by "<name>-max-microamp" property from device tree and
used for

 - regulator_set_load operations
 - icc_level configuration in device

However "min_uA" field is not used anywhere, thus we can remove it.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Acked-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd-pltfrm.c

index 21e4ccb5ba6e7a922eb4012c06cd743ecedf954a..99a9c4d16f6b3043c2fef7e03257f0890f05696d 100644 (file)
@@ -516,7 +516,6 @@ struct ufs_vreg {
        bool enabled;
        int min_uV;
        int max_uV;
-       int min_uA;
        int max_uA;
 };
 
index 93376ea5a61b1f9cbfe8d659f2ec6ea32b440df8..81c5d16e4bc0a0cde1200030d95f2583ef9cd1fa 100644 (file)
@@ -165,7 +165,6 @@ static int ufshcd_populate_vreg(struct device *dev, const char *name,
                goto out;
        }
 
-       vreg->min_uA = 0;
        if (!strcmp(name, "vcc")) {
                if (of_property_read_bool(np, "vcc-supply-1p8")) {
                        vreg->min_uV = UFS_VREG_VCC_1P8_MIN_UV;