Skip to content

Commit

Permalink
ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup
Browse files Browse the repository at this point in the history
Use the new variant of the PWM_LOOKUP macro to initialize 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>
  • Loading branch information
Alexandre Belloni authored and Thierry Reding committed May 21, 2014
1 parent 48d6f14 commit 9becf50
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions arch/arm/mach-pxa/hx4700.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};

/*
Expand Down

0 comments on commit 9becf50

Please sign in to comment.