Re: [PATCH v1] backlight: lm3630a: turn off both led strings when display is blank

2023-05-10 Thread Maximilian Weigand
>> +if (backlight_is_blank(bl) || (bl->props.brightness < 0x4)) > You could replace bl->props.brightness with backlight_get_brightness(bl) > to avoid direct access to the properties. Thanks. Changed in v2. >> +/* turn the string off */ >> ret |= lm3630a_update(pchi

Re: [PATCH v1] backlight: lm3630a: turn off both led strings when display is blank

2023-05-10 Thread Maximilian Weigand
>> Use display_is_blank() to determine if the led strings should be turned > > Shouldn't this be backlight_is_blank()? Yes, indeed. Thanks for pointing this out. Fixed in v2.

Re: [PATCH v1] backlight: lm3630a: turn off both led strings when display is blank

2023-05-09 Thread Sam Ravnborg
On Fri, May 05, 2023 at 08:57:52PM +0200, Maximilian Weigand wrote: > From: Maximilian Weigand > > Use display_is_blank() to determine if the led strings should be turned > off in the update_status() functions of both strings. > > Signed-off-by: Maximilian Weigand > --- > drivers/video/backlig

Re: [PATCH v1] backlight: lm3630a: turn off both led strings when display is blank

2023-05-09 Thread Daniel Thompson
On Fri, May 05, 2023 at 08:57:52PM +0200, Maximilian Weigand wrote: > From: Maximilian Weigand > > Use display_is_blank() to determine if the led strings should be turned Shouldn't this be backlight_is_blank()? > off in the update_status() functions of both strings. Once the description is fix

[PATCH v1] backlight: lm3630a: turn off both led strings when display is blank

2023-05-06 Thread Maximilian Weigand
From: Maximilian Weigand Use display_is_blank() to determine if the led strings should be turned off in the update_status() functions of both strings. Signed-off-by: Maximilian Weigand --- drivers/video/backlight/lm3630a_bl.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff