mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] video: backlight-pwm: set backlight dev.parent to hardware dev
Date: Mon, 11 May 2020 09:42:20 +0200	[thread overview]
Message-ID: <20200511074220.980266-2-ahmad@a3f.at> (raw)
In-Reply-To: <20200511074220.980266-1-ahmad@a3f.at>

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@a3f.at>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-05-11  7:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11  7:42 [PATCH 1/2] video: backlight-pwm: remove unused struct member Ahmad Fatoum
2020-05-11  7:42 ` Ahmad Fatoum [this message]
2020-05-12  7:46 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200511074220.980266-2-ahmad@a3f.at \
    --to=ahmad@a3f.at \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox