[PATCH 01/18] backlight: Constify lcd_ops

Daniel Thompson daniel.thompson at linaro.org
Mon Apr 15 05:46:49 PDT 2024


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 Kozlowski <krzk at kernel.org>

Reviewed-by: Daniel Thompson <daniel.thompson at linaro.org>


Daniel.



More information about the linux-arm-kernel mailing list