mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] rave-sp: backlight: Specify parent device correctly
@ 2018-10-15 16:57 Andrey Smirnov
  2018-10-16  7:01 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Smirnov @ 2018-10-15 16:57 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 drivers/video/rave-sp-backlight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/rave-sp-backlight.c b/drivers/video/rave-sp-backlight.c
index 88ec86e73..3a20def66 100644
--- a/drivers/video/rave-sp-backlight.c
+++ b/drivers/video/rave-sp-backlight.c
@@ -46,6 +46,7 @@ static int rave_sp_backlight_probe(struct device_d *dev)
 
 	bd = xzalloc(sizeof(*bd));
 	bd->dev.priv = dev->parent->priv;
+	bd->dev.parent = dev;
 	bd->brightness_default = 50;
 	bd->brightness_max = 100;
 	bd->brightness_set = rave_sp_backlight_set;
-- 
2.17.1


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] rave-sp: backlight: Specify parent device correctly
  2018-10-15 16:57 [PATCH] rave-sp: backlight: Specify parent device correctly Andrey Smirnov
@ 2018-10-16  7:01 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-10-16  7:01 UTC (permalink / raw)
  To: Andrey Smirnov; +Cc: barebox

On Mon, Oct 15, 2018 at 09:57:43AM -0700, Andrey Smirnov wrote:
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  drivers/video/rave-sp-backlight.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

Sascha

> 
> diff --git a/drivers/video/rave-sp-backlight.c b/drivers/video/rave-sp-backlight.c
> index 88ec86e73..3a20def66 100644
> --- a/drivers/video/rave-sp-backlight.c
> +++ b/drivers/video/rave-sp-backlight.c
> @@ -46,6 +46,7 @@ static int rave_sp_backlight_probe(struct device_d *dev)
>  
>  	bd = xzalloc(sizeof(*bd));
>  	bd->dev.priv = dev->parent->priv;
> +	bd->dev.parent = dev;
>  	bd->brightness_default = 50;
>  	bd->brightness_max = 100;
>  	bd->brightness_set = rave_sp_backlight_set;
> -- 
> 2.17.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-16  7:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-15 16:57 [PATCH] rave-sp: backlight: Specify parent device correctly Andrey Smirnov
2018-10-16  7:01 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox