Re: [PATCH v2 0/24] backlight: add init macros and accessors

2020-09-02 Thread Daniel Thompson
On Fri, Aug 28, 2020 at 11:40:28AM +0200, Linus Walleij wrote: > On Sun, Aug 23, 2020 at 12:45 PM Sam Ravnborg wrote: > > > The first patch trims backlight_update_status() so it can be called with a > > NULL > > backlight_device. Then the caller do not need to add this check just to > > avoid >

Re: [PATCH v2 0/24] backlight: add init macros and accessors

2020-08-28 Thread Linus Walleij
On Sun, Aug 23, 2020 at 12:45 PM Sam Ravnborg wrote: > The first patch trims backlight_update_status() so it can be called with a > NULL > backlight_device. Then the caller do not need to add this check just to avoid > a NULL reference. > > The backlight drivers uses several different patterns w

[PATCH v2 0/24] backlight: add init macros and accessors

2020-08-23 Thread Sam Ravnborg
The first patch trims backlight_update_status() so it can be called with a NULL backlight_device. Then the caller do not need to add this check just to avoid a NULL reference. The backlight drivers uses several different patterns when registering a backlight: - Register backlight and assign prope