backlight: lm3630a: Initialize backlight_properties on init
authorLuca Weiss <luca@z3ntu.xyz>
Mon, 19 Feb 2024 23:11:19 +0000 (00:11 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 09:03:29 +0000 (09:03 +0000)
commitad9aeb0e3aa90ebdad5fabf9c21783740eb95907
tree2903003acc60f4ca772ed431d30e99b60bb0d3ae
parent7ee6478d5aa957d796a18e8c0e63943b038acf58
backlight: lm3630a: Initialize backlight_properties on init

The backlight_properties struct should be initialized to zero before
using, otherwise there will be some random values in the struct.

Fixes: 0c2a665a648e ("backlight: add Backlight driver for lm3630 chip")
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240220-lm3630a-fixups-v1-1-9ca62f7e4a33@z3ntu.xyz
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/lm3630a_bl.c