projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fc6d09
)
pwm: samsung: add missing s3c->pwm_id assignment
author
Joonyoung Shim
<jy0922.shim@samsung.com>
Fri, 14 Dec 2012 06:58:58 +0000
(15:58 +0900)
committer
Thierry Reding
<thierry.reding@avionic-design.de>
Fri, 14 Dec 2012 07:32:58 +0000
(08:32 +0100)
The s3c->pwm_id is used to calculate offset of related register.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-samsung.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-samsung.c
b/drivers/pwm/pwm-samsung.c
index 023a3bee76e7d04e9a76922d46c95addcf418086..0704a2abd8c67496380456dee7e9d6467609cbc9 100644
(file)
--- a/
drivers/pwm/pwm-samsung.c
+++ b/
drivers/pwm/pwm-samsung.c
@@
-222,6
+222,7
@@
static int s3c_pwm_probe(struct platform_device *pdev)
/* calculate base of control bits in TCON */
s3c->tcon_base = id == 0 ? 0 : (id * 4) + 4;
+ s3c->pwm_id = id;
s3c->chip.dev = &pdev->dev;
s3c->chip.ops = &s3c_pwm_ops;
s3c->chip.base = -1;