aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stmpe.c
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2023-12-01 10:22:53 +0000
committerThierry Reding <[email protected]>2023-12-20 15:04:14 +0000
commit80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b (patch)
tree4fde061953c72833e11cd5324b421679708d4a43 /drivers/pwm/pwm-stmpe.c
parentpwm: Update kernel doc for struct pwm_chip (diff)
downloadkernel-80943bbdcfa8138eca3bfd71a8ed4bdf1e107f6b.tar.gz
kernel-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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stmpe.c')
-rw-r--r--drivers/pwm/pwm-stmpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-stmpe.c b/drivers/pwm/pwm-stmpe.c
index a46f5b4dd816..d730631c6583 100644
--- a/drivers/pwm/pwm-stmpe.c
+++ b/drivers/pwm/pwm-stmpe.c
@@ -275,7 +275,7 @@ static int stmpe_24xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
return 0;
}
- err = stmpe_24xx_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period);
+ err = stmpe_24xx_pwm_config(chip, pwm, state->duty_cycle, state->period);
if (err)
return err;