Bugzilla – Attachment 728069 Details for
Bug 1043231
Kernel build failed at armv7hl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
0011-pwm-Use-pwm_get-set_xxx-helpers-where-appropriate.patch
0011-pwm-Use-pwm_get-set_xxx-helpers-where-appropriate.patch (text/plain), 2.36 KB, created by
Matwey Kornilov
on 2017-06-07 19:36:38 UTC
(
hide
)
Description:
0011-pwm-Use-pwm_get-set_xxx-helpers-where-appropriate.patch
Filename:
MIME Type:
Creator:
Matwey Kornilov
Created:
2017-06-07 19:36:38 UTC
Size:
2.36 KB
patch
obsolete
>From d8fb469ec9d06b62b37547f386c9e58b185be0f2 Mon Sep 17 00:00:00 2001 >From: Boris Brezillon <boris.brezillon@free-electrons.com> >Date: Thu, 14 Apr 2016 21:17:22 +0200 >Subject: [PATCH 11/19] pwm: Use pwm_get/set_xxx() helpers where appropriate > >Use pwm_get/set_xxx() helpers instead of directly accessing the pwm->xxx >field. Doing that will ease adaptation of the PWM framework to support >atomic update. > >Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> >Signed-off-by: Thierry Reding <thierry.reding@gmail.com> >Git-commit: 4b58896f72176b781816a9e14dcea5f755b19b5c >Patch-mainline: v4.7-rc1 >Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com> >--- > drivers/pwm/pwm-crc.c | 2 +- > drivers/pwm/pwm-lpc18xx-sct.c | 2 +- > drivers/pwm/pwm-sun4i.c | 3 ++- > 3 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/drivers/pwm/pwm-crc.c b/drivers/pwm/pwm-crc.c >index 7101c7020bf4..bd0ebd04856a 100644 >--- a/drivers/pwm/pwm-crc.c >+++ b/drivers/pwm/pwm-crc.c >@@ -75,7 +75,7 @@ static int crc_pwm_config(struct pwm_chip *c, struct pwm_device *pwm, > return -EINVAL; > } > >- if (pwm->period != period_ns) { >+ if (pwm_get_period(pwm) != period_ns) { > int clk_div; > > /* changing the clk divisor, need to disable fisrt */ >diff --git a/drivers/pwm/pwm-lpc18xx-sct.c b/drivers/pwm/pwm-lpc18xx-sct.c >index 9163085101bc..52aba84a784e 100644 >--- a/drivers/pwm/pwm-lpc18xx-sct.c >+++ b/drivers/pwm/pwm-lpc18xx-sct.c >@@ -249,7 +249,7 @@ static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) > LPC18XX_PWM_EVSTATEMSK(lpc18xx_data->duty_event), > LPC18XX_PWM_EVSTATEMSK_ALL); > >- if (pwm->polarity == PWM_POLARITY_NORMAL) { >+ if (pwm_get_polarity(pwm) == PWM_POLARITY_NORMAL) { > set_event = lpc18xx_pwm->period_event; > clear_event = lpc18xx_data->duty_event; > res_action = LPC18XX_PWM_RES_SET; >diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c >index 67af9f62361f..03a99a53c39e 100644 >--- a/drivers/pwm/pwm-sun4i.c >+++ b/drivers/pwm/pwm-sun4i.c >@@ -354,7 +354,8 @@ static int sun4i_pwm_probe(struct platform_device *pdev) > val = sun4i_pwm_readl(pwm, PWM_CTRL_REG); > for (i = 0; i < pwm->chip.npwm; i++) > if (!(val & BIT_CH(PWM_ACT_STATE, i))) >- pwm->chip.pwms[i].polarity = PWM_POLARITY_INVERSED; >+ pwm_set_polarity(&pwm->chip.pwms[i], >+ PWM_POLARITY_INVERSED); > clk_disable_unprepare(pwm->clk); > > return 0; >-- >2.12.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 1043231
:
728059
|
728060
|
728061
|
728062
|
728063
|
728064
|
728065
|
728066
|
728067
|
728068
| 728069 |
728070
|
728071
|
728072
|
728073
|
728074
|
728075
|
728076
|
728077
|
728521
|
728695
|
728770