backlight: ktz8866: Correct the check for of_property_read_u32
authorJianhua Lu <lujianhua000@gmail.com>
Mon, 29 Jan 2024 12:28:29 +0000 (20:28 +0800)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 09:03:28 +0000 (09:03 +0000)
commitf1ac3c9825f99c93a9833beee6b78aa386e55b0b
tree030ea2bdbadb34965242f560f1f2188310f99132
parentb1ba8bcb2d1ffce11b308ce166c9cc28d989e3b9
backlight: ktz8866: Correct the check for of_property_read_u32

of_property_read_u32 returns 0 when success, so reverse the
return value to get the true value.

Fixes: f8449c8f7355 ("backlight: ktz8866: Add support for Kinetic KTZ8866 backlight")
Signed-off-by: Jianhua Lu <lujianhua000@gmail.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240129122829.16248-1-lujianhua000@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/ktz8866.c