diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2015-07-01 10:21:50 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-07-20 09:53:22 +0200 |
commit | 15da7b5001e498fa7dc619d4d7951f9665b071e4 (patch) | |
tree | b6326e565d42eed52a157f84440475f84760e958 /drivers/pwm/pwm-bcm-kona.c | |
parent | 011e76314818b6a24d5347b2d83b8a577e6aaae6 (diff) | |
download | linux-15da7b5001e498fa7dc619d4d7951f9665b071e4.tar.bz2 |
pwm: Make use of pwm_get_xxx() helpers where appropriate
Use the pwm_get_xxx() helpers instead of directly accessing the fields
in struct pwm_device. This will allow us to smoothly move to the atomic
update approach.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-bcm-kona.c')
-rw-r--r-- | drivers/pwm/pwm-bcm-kona.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-bcm-kona.c b/drivers/pwm/pwm-bcm-kona.c index dfdcf88279ae..920cd1b5aa9d 100644 --- a/drivers/pwm/pwm-bcm-kona.c +++ b/drivers/pwm/pwm-bcm-kona.c @@ -194,7 +194,8 @@ static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) return ret; } - ret = kona_pwmc_config(chip, pwm, pwm->duty_cycle, pwm->period); + ret = kona_pwmc_config(chip, pwm, pwm_get_duty_cycle(pwm), + pwm_get_period(pwm)); if (ret < 0) { clk_disable_unprepare(kp->clk); return ret; |