Thread (15 messages) 15 messages, 6 authors, 2010-09-28
STALE5720d

[PATCH 2/7] backlight:pwm: add an element 'name' to platform data

From: Mark Brown <hidden>
Date: 2010-09-28 17:47:45
Also in: linux-mips

On Tue, Sep 28, 2010 at 01:10:43PM +0530, Arun Murthy wrote:
A new element 'name' is added to pwm backlight platform data structure.
This is required to identify the pwm device.
-	pb->pwm = pwm_request(data->pwm_id, "backlight");
+	if (!data->name)
+		data->name = "backlight";
+	pb->pwm = pwm_request(data->pwm_id, data->name);
If we're going to go through and require that all PWM API users be
updated to take platform data for the name might it not be better to
switch over to the clock API style request by device interface?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help