ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 19 May 2014 20:42:40 +0000 (22:42 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 21 May 2014 09:19:44 +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: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
arch/arm/mach-pxa/hx4700.c

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