search for: new_bd

Displaying 4 results from an estimated 4 matches for "new_bd".

Did you mean: new_bh
2016 Aug 04
2
[Intel-gfx] [PATCH] backlight: Avoid double fbcon backlight handling
...vice_register(const char *name, >> struct device *parent, void *devdata, const struct backlight_ops *ops, >> - const struct backlight_properties *props) >> + const struct backlight_properties *props, >> + unsigned long flags) >> { >> struct backlight_device *new_bd; >> int rc; >> @@ -363,10 +365,12 @@ struct backlight_device *backlight_device_register(const char *name, >> return ERR_PTR(rc); >> } >> >> - rc = backlight_register_fb(new_bd); >> - if (rc) { >> - device_unregister(&new_bd->dev); &gt...
2016 Jul 12
0
[Intel-gfx] [PATCH] backlight: Avoid double fbcon backlight handling
...ght_device *backlight_device_register(const char *name, > struct device *parent, void *devdata, const struct backlight_ops *ops, > - const struct backlight_properties *props) > + const struct backlight_properties *props, > + unsigned long flags) > { > struct backlight_device *new_bd; > int rc; > @@ -363,10 +365,12 @@ struct backlight_device *backlight_device_register(const char *name, > return ERR_PTR(rc); > } > > - rc = backlight_register_fb(new_bd); > - if (rc) { > - device_unregister(&new_bd->dev); > - return ERR_PTR(rc); > +...
2016 Jun 30
6
[PATCH] backlight: Avoid double fbcon backlight handling
...ed device. */ struct backlight_device *backlight_device_register(const char *name, struct device *parent, void *devdata, const struct backlight_ops *ops, - const struct backlight_properties *props) + const struct backlight_properties *props, + unsigned long flags) { struct backlight_device *new_bd; int rc; @@ -363,10 +365,12 @@ struct backlight_device *backlight_device_register(const char *name, return ERR_PTR(rc); } - rc = backlight_register_fb(new_bd); - if (rc) { - device_unregister(&new_bd->dev); - return ERR_PTR(rc); + if (flags & BACKLIGHT_REGISTER_FB_CLIENT) { +...
2016 Aug 04
1
[Intel-gfx] [PATCH] backlight: Avoid double fbcon backlight handling
..., > >> struct device *parent, void *devdata, const struct backlight_ops *ops, > >> - const struct backlight_properties *props) > >> + const struct backlight_properties *props, > >> + unsigned long flags) > >> { > >> struct backlight_device *new_bd; > >> int rc; > >> @@ -363,10 +365,12 @@ struct backlight_device *backlight_device_register(const char *name, > >> return ERR_PTR(rc); > >> } > >> > >> - rc = backlight_register_fb(new_bd); > >> - if (rc) { > >> - dev...