projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7c4b02
)
pwm: stm32: LPTimer: Use 3 cells ->of_xlate()
author
Gerald Baeza
<gerald.baeza@st.com>
Fri, 23 Feb 2018 13:36:04 +0000
(14:36 +0100)
committer
Thierry Reding
<thierry.reding@gmail.com>
Tue, 27 Mar 2018 22:54:56 +0000
(
00:54
+0200)
STM32 Low-Power Timer supports generic 3 cells PWM to encode PWM number,
period and polarity.
Signed-off-by: Gerald Baeza <gerald.baeza@st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-stm32-lp.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-stm32-lp.c
b/drivers/pwm/pwm-stm32-lp.c
index
cbd271e
..
7c13e25
100644
(file)
--- a/
drivers/pwm/pwm-stm32-lp.c
+++ b/
drivers/pwm/pwm-stm32-lp.c
@@
-202,6
+202,8
@@
static int stm32_pwm_lp_probe(struct platform_device *pdev)
priv->chip.dev = &pdev->dev;
priv->chip.ops = &stm32_pwm_lp_ops;
priv->chip.npwm = 1;
+ priv->chip.of_xlate = of_pwm_xlate_with_flags;
+ priv->chip.of_pwm_n_cells = 3;
ret = pwmchip_add(&priv->chip);
if (ret < 0)