]> Git Repo - linux.git/blobdiff - drivers/pwm/pwm-xilinx.c
net/sched: Retire dsmark qdisc
[linux.git] / drivers / pwm / pwm-xilinx.c
index 4dab2b86c42766a23c56b0501641d84195c5d6ee..f7a50fdcd9a52821fde37348652f105b3969a7eb 100644 (file)
@@ -169,9 +169,9 @@ static int xilinx_pwm_apply(struct pwm_chip *chip, struct pwm_device *unused,
        return 0;
 }
 
        return 0;
 }
 
-static void xilinx_pwm_get_state(struct pwm_chip *chip,
-                                struct pwm_device *unused,
-                                struct pwm_state *state)
+static int xilinx_pwm_get_state(struct pwm_chip *chip,
+                               struct pwm_device *unused,
+                               struct pwm_state *state)
 {
        struct xilinx_timer_priv *priv = xilinx_pwm_chip_to_priv(chip);
        u32 tlr0, tlr1, tcsr0, tcsr1;
 {
        struct xilinx_timer_priv *priv = xilinx_pwm_chip_to_priv(chip);
        u32 tlr0, tlr1, tcsr0, tcsr1;
@@ -191,6 +191,8 @@ static void xilinx_pwm_get_state(struct pwm_chip *chip,
         */
        if (state->period == state->duty_cycle)
                state->duty_cycle = 0;
         */
        if (state->period == state->duty_cycle)
                state->duty_cycle = 0;
+
+       return 0;
 }
 
 static const struct pwm_ops xilinx_pwm_ops = {
 }
 
 static const struct pwm_ops xilinx_pwm_ops = {
This page took 0.034076 seconds and 4 git commands to generate.