diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2016-03-30 20:03:26 (GMT) |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2016-05-17 12:44:58 (GMT) |
commit | 4ff66efd59102280a71d432c9f0e89cdaf66b849 (patch) | |
tree | 514563ed83c39ba35a3c54f7f2311ea62cdfef3f /drivers/video | |
parent | 7f044b09b68d36811518c55f736a20648e8ed6e2 (diff) | |
download | linux-4ff66efd59102280a71d432c9f0e89cdaf66b849.tar.xz |
backlight: lm3630a_bl: Stop messing with the pwm->period field
pwm->period field is not supposed to be changed by PWM users. The only
ones authorized to change it are the PWM core and PWM drivers.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/lm3630a_bl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index 35fe482..3d16bd6 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -162,7 +162,7 @@ static int lm3630a_intr_config(struct lm3630a_chip *pchip) static void lm3630a_pwm_ctrl(struct lm3630a_chip *pchip, int br, int br_max) { - unsigned int period = pwm_get_period(pchip->pwmd); + unsigned int period = pchip->pdata->pwm_period; unsigned int duty = br * period / br_max; pwm_config(pchip->pwmd, duty, period); @@ -425,7 +425,6 @@ static int lm3630a_probe(struct i2c_client *client, return PTR_ERR(pchip->pwmd); } } - pchip->pwmd->period = pdata->pwm_period; /* interrupt enable : irq 0 is not allowed */ pchip->irq = client->irq; |