Re: [PATCH 01/18] backlight: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:35:59PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' passed in lcd_device_register() is not modified by core > backlight code, so it can be made const for code safety. This allows > drivers to also define the structure as const. > > Signed-off-by: Krzysztof

[PATCH 01/18] backlight: Constify lcd_ops

2024-04-14 Thread Krzysztof Kozlowski
'struct lcd_ops' passed in lcd_device_register() is not modified by core backlight code, so it can be made const for code safety. This allows drivers to also define the structure as const. Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/lcd.c | 4 ++-- include/linux/lcd.h