]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/pwm/pwm-rcar.c
pwm: Ensure pwm_apply_state() doesn't modify the state argument
[mirror_ubuntu-hirsute-kernel.git] / drivers / pwm / pwm-rcar.c
index c8cd43f91efcd4de11ef45f1278a6574fe67e9e7..852eb2347954d128669a176b0f6ca4fd6a48b84a 100644 (file)
@@ -158,7 +158,7 @@ static void rcar_pwm_disable(struct rcar_pwm_chip *rp)
 }
 
 static int rcar_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
-                         struct pwm_state *state)
+                         const struct pwm_state *state)
 {
        struct rcar_pwm_chip *rp = to_rcar_pwm_chip(chip);
        struct pwm_state cur_state;