]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/pwm/pwm-bcm-iproc.c
pwm: Ensure pwm_apply_state() doesn't modify the state argument
[mirror_ubuntu-hirsute-kernel.git] / drivers / pwm / pwm-bcm-iproc.c
index d961a8207b1cbe660cfb6f38d21b7383f1834847..56c38cfae92ca9285d69e6bd6596cd80d95fcae7 100644 (file)
@@ -115,7 +115,7 @@ static void iproc_pwmc_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
 }
 
 static int iproc_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm,
-                           struct pwm_state *state)
+                           const struct pwm_state *state)
 {
        unsigned long prescale = IPROC_PWM_PRESCALE_MIN;
        struct iproc_pwmc *ip = to_iproc_pwmc(chip);