[PATCH 2/2] video: backlight-pwm: set backlight dev.parent to hardware dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



backlight_register allocates a new backlight device. Populating the
device's parent field with the hardware device gives us more
informational devinfo output.

Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx>
---
 drivers/video/backlight-pwm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight-pwm.c b/drivers/video/backlight-pwm.c
index fda23b8243f6..cae016be8f3d 100644
--- a/drivers/video/backlight-pwm.c
+++ b/drivers/video/backlight-pwm.c
@@ -202,6 +202,7 @@ static int backlight_pwm_of_probe(struct device_d *dev)
 
 	pwm_backlight->backlight.slew_time_ms = 100;
 	pwm_backlight->backlight.brightness_set = backlight_pwm_set;
+	pwm_backlight->backlight.dev.parent = dev;
 	pwm_backlight->backlight.node = dev->device_node;
 
 	ret = backlight_register(&pwm_backlight->backlight);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux