backlight: l4f00242t03: Add check for spi_setup
authorChen Ni <nichen@iscas.ac.cn>
Fri, 5 Jul 2024 09:28:00 +0000 (17:28 +0800)
committerLee Jones <lee@kernel.org>
Thu, 1 Aug 2024 12:40:14 +0000 (13:40 +0100)
commitfea88a13a5d14b9f56fa338b47f2044806b3e64d
tree3b2cc81667439117dfde150a0637b4967b3dfb59
parent8400291e289ee6b2bf9779ff1c83a291501f017b
backlight: l4f00242t03: Add check for spi_setup

Add check for the return value of spi_setup() and return the error
if it fails in order to catch the error.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240705092800.3221159-1-nichen@iscas.ac.cn
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/l4f00242t03.c