ARM: pxa: hx4700: initialize all the struct pwm_lookup members
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 19 May 2014 20:42:36 +0000 (22:42 +0200)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:23:10 +0000 (09:23 +0900)
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>
(cherry picked from commit fcb355063ffb12a834b3ca1383c9beec9285d568)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-pxa/hx4700.c

index a7c30eb..0788a1f 100644 (file)
@@ -574,7 +574,14 @@ static struct platform_device backlight = {
 };
 
 static struct pwm_lookup hx4700_pwm_lookup[] = {
-       PWM_LOOKUP("pxa27x-pwm.1", 0, "pwm-backlight", NULL),
+       {
+               .provider = "pxa27x-pwm.1",
+               .index = 0,
+               .dev_id = "pwm-backlight",
+               .con_id = NULL,
+               .period = 30923,
+               .polarity = PWM_POLARITY_NORMAL,
+       },
 };
 
 /*