pwm: Ensure pwm_apply_state() doesn't modify the state argument
[linux-block.git] / drivers / pwm / pwm-zx.c
index e24f4be35316e2218595f02753df11978affbc9d..e2c21cc34a96aadc968b8df8c9de296e1de45cc9 100644 (file)
@@ -148,7 +148,7 @@ static int zx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
 }
 
 static int zx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
-                       struct pwm_state *state)
+                       const struct pwm_state *state)
 {
        struct zx_pwm_chip *zpc = to_zx_pwm_chip(chip);
        struct pwm_state cstate;