From: Alexandre Belloni Date: Mon, 19 May 2014 20:42:39 +0000 (+0200) Subject: ARM: shmobile: armadillo: use PWM_LOOKUP to initialize struct pwm_lookup X-Git-Tag: v3.14.28+ltsi~504 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=865decddbd082c758c353067e5afaada4046e7d6;p=profile%2Fcommon%2Fkernel-common.git ARM: shmobile: armadillo: use PWM_LOOKUP to initialize struct pwm_lookup Use the new variant of the PWM_LOOKUP macro to initialize the PWM lookup table. Signed-off-by: Alexandre Belloni Acked-by: Laurent Pinchart Acked-by: Simon Horman Signed-off-by: Thierry Reding (cherry picked from commit 48d6f146dced79d1df0cb91b30f1cdb749ecdf9f) Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 8410ce7..dfdc973 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -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 */