From: Yunfan Zhang Date: Mon, 10 Sep 2012 03:40:24 +0000 (-0700) Subject: regulator: fan53555: remove vsel_max not used X-Git-Tag: firefly_0821_release~3680^2~2008^2^5~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b26e48308feaf428efb917f8de217797bfedb26;p=firefly-linux-kernel-4.4.55.git regulator: fan53555: remove vsel_max not used The max voltage will be bounded by min_uV, uV_step and n_voltages, so remove it to avoid confusing. Signed-off-by: Yunfan Zhang Reviewed-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 890f2b34b39a..339f4d732e97 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -74,7 +74,6 @@ struct fan53555_device_info { unsigned int sleep_reg; /* Voltage range and step(linear) */ unsigned int vsel_min; - unsigned int vsel_max; unsigned int vsel_step; /* Voltage slew rate limiting */ unsigned int slew_rate; @@ -180,12 +179,10 @@ static int fan53555_device_setup(struct fan53555_device_info *di, case FAN53555_CHIP_ID_03: case FAN53555_CHIP_ID_05: di->vsel_min = 600000; - di->vsel_max = 1230000; di->vsel_step = 10000; break; case FAN53555_CHIP_ID_04: di->vsel_min = 603000; - di->vsel_max = 1411000; di->vsel_step = 12826; break; default: