]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: armadillo: use PWM_LOOKUP to initialize struct pwm_lookup
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 19 May 2014 20:42:39 +0000 (22:42 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 21 May 2014 09:19:37 +0000 (11:19 +0200)
Use the new variant of the PWM_LOOKUP macro to initialize the PWM lookup
table.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
arch/arm/mach-shmobile/board-armadillo800eva.c

index 1bf61dad9a350b9ac439245e39e97337cd2a667c..ca82b1e2ebab6995fcefad6bada76009618f43bf 100644 (file)
@@ -407,14 +407,8 @@ static struct platform_device pwm_device = {
 };
 
 static struct pwm_lookup pwm_lookup[] = {
-       {
-               .provider = "renesas-tpu-pwm",
-               .index = 2,
-               .dev_id = "pwm-backlight.0",
-               .con_id = NULL,
-               .period = 33333,
-               .polarity = PWM_POLARITY_INVERSED,
-       },
+       PWM_LOOKUP("renesas-tpu-pwm", 2, "pwm-backlight.0", NULL,
+                  33333, PWM_POLARITY_INVERSED),
 };
 
 /* LCDC and backlight */