leds: leds-pwm: retrieve configured PWM period
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 19 May 2014 20:42:41 +0000 (22:42 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 21 May 2014 09:19:45 +0000 (11:19 +0200)
commit81225bed32739752df61b5821bbf3f9be70e434d
tree77683ae1cde1fd6c7508290f7683017c74f6440d
parent9becf5001130bcd24f57584e48467050e85eee03
leds: leds-pwm: retrieve configured PWM period

The PWM core is now able to initialize the PWM period from a lookup
table defined by board files. Use it if available and fallback to the
value supplied in pwm_period_ns.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/leds/leds-pwm.c