diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2023-12-01 13:22:53 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-12-20 18:04:14 +0300 |
commit | 80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b (patch) | |
tree | 4fde061953c72833e11cd5324b421679708d4a43 /drivers/pwm/pwm-vt8500.c | |
parent | 2d91123ae5614b8737abd3a519b81265309a1ac3 (diff) | |
download | linux-80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b.tar.xz |
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-vt8500.c')
-rw-r--r-- | drivers/pwm/pwm-vt8500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c index 5568d5312d3c..bdea60389487 100644 --- a/drivers/pwm/pwm-vt8500.c +++ b/drivers/pwm/pwm-vt8500.c @@ -209,7 +209,7 @@ static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, * pwm_apply_state because of !state->enabled and so the two values in * pwm->state might not be configured in hardware. */ - err = vt8500_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period); + err = vt8500_pwm_config(chip, pwm, state->duty_cycle, state->period); if (err) return err; |