Re: [PATCH v2 3/5] drm/gma500: Use backlight_get_brightness() to get the brightness

2022-09-17 Thread Sam Ravnborg
Hi Hans, On Sat, Sep 17, 2022 at 11:00:55PM +0200, Hans de Goede wrote: > Hi, > > On 9/17/22 22:46, Sam Ravnborg wrote: > > On Sat, Sep 17, 2022 at 04:03:50PM +0200, Hans de Goede wrote: > >> Use backlight_get_brightness() instead of directly referencing > >> bd->props.brightness. This will take

Re: [PATCH v2 3/5] drm/gma500: Use backlight_get_brightness() to get the brightness

2022-09-17 Thread Hans de Goede
Hi, On 9/17/22 22:46, Sam Ravnborg wrote: > On Sat, Sep 17, 2022 at 04:03:50PM +0200, Hans de Goede wrote: >> Use backlight_get_brightness() instead of directly referencing >> bd->props.brightness. This will take backlight_is_blank() into account, >> properly setting brightness to 0 when screen-bl

Re: [PATCH v2 3/5] drm/gma500: Use backlight_get_brightness() to get the brightness

2022-09-17 Thread Sam Ravnborg
On Sat, Sep 17, 2022 at 04:03:50PM +0200, Hans de Goede wrote: > Use backlight_get_brightness() instead of directly referencing > bd->props.brightness. This will take backlight_is_blank() into account, > properly setting brightness to 0 when screen-blanking has been requested > through the backligh

[PATCH v2 3/5] drm/gma500: Use backlight_get_brightness() to get the brightness

2022-09-17 Thread Hans de Goede
Use backlight_get_brightness() instead of directly referencing bd->props.brightness. This will take backlight_is_blank() into account, properly setting brightness to 0 when screen-blanking has been requested through the backlight sysfs interface. Suggested-by: Sam Ravnborg Signed-off-by: Hans de