From: Alexandre Belloni Date: Mon, 19 May 2014 20:42:40 +0000 (+0200) Subject: ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup X-Git-Tag: v3.14.28+ltsi~503 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acefac3b680447d97e2345b5526e9cd877f774a2;p=profile%2Fcommon%2Fkernel-common.git ARM: pxa: hx4700: 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: Philipp Zabel Signed-off-by: Thierry Reding (cherry picked from commit 9becf5001130bcd24f57584e48467050e85eee03) Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 0788a1f..c66ad4e 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c @@ -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), }; /*