diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2023-12-01 11:22:53 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-12-20 16:04:14 +0100 |
commit | 80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b (patch) | |
tree | 4fde061953c72833e11cd5324b421679708d4a43 /drivers/pwm/pwm-bcm-kona.c | |
parent | pwm: Update kernel doc for struct pwm_chip (diff) | |
download | linux-80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b.tar.xz linux-80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b.zip |
pwm: Stop referencing pwm->chip
Drivers have access to the chip via a function argument already, so
there is no need to reference it via the PWM device.
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-bcm-kona.c b/drivers/pwm/pwm-bcm-kona.c index 15d6ed03c3ce..45046a5c20a5 100644 --- a/drivers/pwm/pwm-bcm-kona.c +++ b/drivers/pwm/pwm-bcm-kona.c @@ -260,7 +260,7 @@ static int kona_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm, return err; } - err = kona_pwmc_config(pwm->chip, pwm, state->duty_cycle, state->period); + err = kona_pwmc_config(chip, pwm, state->duty_cycle, state->period); if (err && !pwm->state.enabled) clk_disable_unprepare(kp->clk); |