diff options
author | Lee Jones <lee.jones@linaro.org> | 2015-07-09 17:35:27 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-09 19:54:24 +0200 |
commit | f747a1fe7848453957dbdf362a42d7a6735c6ff0 (patch) | |
tree | 0be4cbad58f6f2bb6f1774aa5c9036db80cee16f /drivers/regulator | |
parent | regulator: pwm-regulator: Ensure headings aren't confused with properties (diff) | |
download | linux-f747a1fe7848453957dbdf362a42d7a6735c6ff0.tar.xz linux-f747a1fe7848453957dbdf362a42d7a6735c6ff0.zip |
regulator: pwm-regulator: Remove obsoleted property
In "[3d7ef30] regulator: pwm-regulator: Simplify voltage to duty-cycle
call" we stopped using max_duty_cycle, so we can retire it from device
data and DT.
There is no need to deprecate this property, as it hasn't hit Mainline
yet.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pwm-regulator.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index cb482089050b..d92e66772ec0 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c @@ -30,7 +30,6 @@ struct pwm_regulator_data { int state; /* Continuous voltage */ - u32 max_duty_cycle; int volt_uV; }; @@ -201,14 +200,6 @@ static int pwm_regulator_init_continuous(struct platform_device *pdev, struct pwm_regulator_data *drvdata) { struct device_node *np = pdev->dev.of_node; - int ret; - - ret = of_property_read_u32(np, "max-duty-cycle", - &drvdata->max_duty_cycle); - if (ret) { - dev_err(&pdev->dev, "Failed to read \"pwm-max-value\"\n"); - return ret; - } pwm_regulator_desc.ops = &pwm_regulator_voltage_continuous_ops; pwm_regulator_desc.continuous_voltage_range = true; |