Re: [PATCH v2 01/24] backlight: Silently fail backlight_update_status() if no device

2020-09-02 Thread Daniel Thompson
On Sun, Aug 23, 2020 at 12:45:09PM +0200, Sam Ravnborg wrote: > backlight_update_status() may be called from code that does not have > any valid backlight device. To avoid ifdeffery and too much conditionals > silently fail if the backlight_device is NULL. > > Signed-off-by: Sam Ravnborg > Cc: Le

[PATCH v2 01/24] backlight: Silently fail backlight_update_status() if no device

2020-08-23 Thread Sam Ravnborg
backlight_update_status() may be called from code that does not have any valid backlight device. To avoid ifdeffery and too much conditionals silently fail if the backlight_device is NULL. Signed-off-by: Sam Ravnborg Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han --- include/linux/backlight