浏览代码

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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Alexandre Belloni 11 年之前
父节点
当前提交
fcb355063f
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      arch/arm/mach-pxa/hx4700.c

+ 8 - 1
arch/arm/mach-pxa/hx4700.c

@@ -574,7 +574,14 @@ 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",
+		.index = 0,
+		.dev_id = "pwm-backlight",
+		.con_id = NULL,
+		.period = 30923,
+		.polarity = PWM_POLARITY_NORMAL,
+	},
 };
 };
 
 
 /*
 /*