diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2014-05-19 16:42:36 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-05-21 05:19:36 -0400 |
commit | fcb355063ffb12a834b3ca1383c9beec9285d568 (patch) | |
tree | 81a2e0aa7fcdb2327f350fb21ef8c478641257ee /arch/arm/mach-pxa/hx4700.c | |
parent | e02a84a5ad2f46d4a262884df5ad9ab9e833a7b5 (diff) |
ARM: pxa: hx4700: initialize all the struct pwm_lookup members
Instead of relying on the .pwm_period_ns member of the pwm-backlight
driver's platform data, the PWM period can be retrieved from the PWM
lookup table.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/hx4700.c')
-rw-r--r-- | arch/arm/mach-pxa/hx4700.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index a7c30eb0c8db..0788a1f171fe 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -574,7 +574,14 @@ static struct platform_device backlight = { | |||
574 | }; | 574 | }; |
575 | 575 | ||
576 | static struct pwm_lookup hx4700_pwm_lookup[] = { | 576 | static struct pwm_lookup hx4700_pwm_lookup[] = { |
577 | PWM_LOOKUP("pxa27x-pwm.1", 0, "pwm-backlight", NULL), | 577 | { |
578 | .provider = "pxa27x-pwm.1", | ||
579 | .index = 0, | ||
580 | .dev_id = "pwm-backlight", | ||
581 | .con_id = NULL, | ||
582 | .period = 30923, | ||
583 | .polarity = PWM_POLARITY_NORMAL, | ||
584 | }, | ||
578 | }; | 585 | }; |
579 | 586 | ||
580 | /* | 587 | /* |