Commit fcb35506 authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Thierry Reding

ARM: pxa: hx4700: initialize all the struct pwm_lookup members

Instead of relying on the .pwm_period_ns member of the pwm-backlight
driver's platform data, the PWM period can be retrieved from the PWM
lookup table.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent e02a84a5
......@@ -574,7 +574,14 @@ static struct platform_device backlight = {
};
static struct pwm_lookup hx4700_pwm_lookup[] = {
PWM_LOOKUP("pxa27x-pwm.1", 0, "pwm-backlight", NULL),
{
.provider = "pxa27x-pwm.1",
.index = 0,
.dev_id = "pwm-backlight",
.con_id = NULL,
.period = 30923,
.polarity = PWM_POLARITY_NORMAL,
},
};
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment