Re: [PATCH v2 03/16] backlight: add backlight_is_blank()

2020-05-28 Thread Peter Ujfalusi
On 17/05/2020 22.01, Sam Ravnborg wrote: > The backlight support has two properties that express the state: > - power > - state > > It is un-documented and easy to get wrong. > Add backlight_is_blank() helper to make it simpler for drivers > to get the check of the state correct. > > A lot of d

Re: [PATCH v2 03/16] backlight: add backlight_is_blank()

2020-05-20 Thread Emil Velikov
On Sun, 17 May 2020 at 20:02, Sam Ravnborg wrote: > > The backlight support has two properties that express the state: > - power > - state > > It is un-documented and easy to get wrong. > Add backlight_is_blank() helper to make it simpler for drivers > to get the check of the state correct. > > A

Re: [PATCH v2 03/16] backlight: add backlight_is_blank()

2020-05-18 Thread Daniel Thompson
On Sun, May 17, 2020 at 09:01:26PM +0200, Sam Ravnborg wrote: > The backlight support has two properties that express the state: > - power > - state > > It is un-documented and easy to get wrong. > Add backlight_is_blank() helper to make it simpler for drivers > to get the check of the state corre

[PATCH v2 03/16] backlight: add backlight_is_blank()

2020-05-17 Thread Sam Ravnborg
The backlight support has two properties that express the state: - power - state It is un-documented and easy to get wrong. Add backlight_is_blank() helper to make it simpler for drivers to get the check of the state correct. A lot of drivers also includes checks for fb_blank. This check is redun