]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/pwm/pwm-sun4i.c
net: phy: micrel: Update KSZ87xx PHY name
[linux.git] / drivers / pwm / pwm-sun4i.c
index 39007a7c0d835efcfea85a1c760673e2433caa10..6f5840a1a82dc1909aad7e6d61632aea8a7b8271 100644 (file)
@@ -145,7 +145,7 @@ static void sun4i_pwm_get_state(struct pwm_chip *chip,
 }
 
 static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm,
-                              struct pwm_state *state,
+                              const struct pwm_state *state,
                               u32 *dty, u32 *prd, unsigned int *prsclr)
 {
        u64 clk_rate, div = 0;
@@ -196,7 +196,7 @@ static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm,
 }
 
 static int sun4i_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
-                          struct pwm_state *state)
+                          const struct pwm_state *state)
 {
        struct sun4i_pwm_chip *sun4i_pwm = to_sun4i_pwm_chip(chip);
        struct pwm_state cstate;