提交 9becf500 编写于 作者: A Alexandre Belloni 提交者: Thierry Reding

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: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: NPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 48d6f146
...@@ -574,14 +574,8 @@ static struct platform_device backlight = { ...@@ -574,14 +574,8 @@ static struct platform_device backlight = {
}; };
static struct pwm_lookup hx4700_pwm_lookup[] = { static struct pwm_lookup hx4700_pwm_lookup[] = {
{ PWM_LOOKUP("pxa27x-pwm.1", 0, "pwm-backlight", NULL,
.provider = "pxa27x-pwm.1", 30923, PWM_POLARITY_NORMAL),
.index = 0,
.dev_id = "pwm-backlight",
.con_id = NULL,
.period = 30923,
.polarity = PWM_POLARITY_NORMAL,
},
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册