diff options
Diffstat (limited to 'drivers/pwm/pwm-jz4740.c')
-rw-r--r-- | drivers/pwm/pwm-jz4740.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-jz4740.c b/drivers/pwm/pwm-jz4740.c index f901e8a0d33d..9d78cc21cb12 100644 --- a/drivers/pwm/pwm-jz4740.c +++ b/drivers/pwm/pwm-jz4740.c | |||
@@ -2,6 +2,11 @@ | |||
2 | /* | 2 | /* |
3 | * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> | 3 | * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> |
4 | * JZ4740 platform PWM support | 4 | * JZ4740 platform PWM support |
5 | * | ||
6 | * Limitations: | ||
7 | * - The .apply callback doesn't complete the currently running period before | ||
8 | * reconfiguring the hardware. | ||
9 | * - Each period starts with the inactive part. | ||
5 | */ | 10 | */ |
6 | 11 | ||
7 | #include <linux/clk.h> | 12 | #include <linux/clk.h> |
@@ -83,7 +88,7 @@ static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) | |||
83 | } | 88 | } |
84 | 89 | ||
85 | static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, | 90 | static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, |
86 | struct pwm_state *state) | 91 | const struct pwm_state *state) |
87 | { | 92 | { |
88 | struct jz4740_pwm_chip *jz4740 = to_jz4740(pwm->chip); | 93 | struct jz4740_pwm_chip *jz4740 = to_jz4740(pwm->chip); |
89 | unsigned long long tmp; | 94 | unsigned long long tmp; |