projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pwm: sun4i: Don't update the state for the caller of pwm_apply_state()
[linux-2.6-microblaze.git]
/
drivers
/
pwm
/
pwm-sun4i.c
diff --git
a/drivers/pwm/pwm-sun4i.c
b/drivers/pwm/pwm-sun4i.c
index
de78c82
..
39007a7
100644
(file)
--- a/
drivers/pwm/pwm-sun4i.c
+++ b/
drivers/pwm/pwm-sun4i.c
@@
-192,12
+192,6
@@
static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm,
*dty = div;
*prsclr = prescaler;
- div = (u64)pval * NSEC_PER_SEC * *prd;
- state->period = DIV_ROUND_CLOSEST_ULL(div, clk_rate);
-
- div = (u64)pval * NSEC_PER_SEC * *dty;
- state->duty_cycle = DIV_ROUND_CLOSEST_ULL(div, clk_rate);
-
return 0;
}