platform/x86: compal-laptop: Use backlight helper
authorStephen Kitt <steve@sk2.org>
Tue, 7 Jun 2022 18:46:34 +0000 (20:46 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 22 Jun 2022 09:53:56 +0000 (11:53 +0200)
commit537c7933c8e4dbc0064bf3e84d3a36d92ea66952
tree01257cdf883888cf9c3c5dee5022b8da4eab89ef
parent3096ab5b902a35a6dc2d154ab60bd6de7ac323ee
platform/x86: compal-laptop: Use backlight helper

Instead of manually checking the power state in struct
backlight_properties, use backlight_is_blank().

Signed-off-by: Stephen Kitt <steve@sk2.org>
Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Mark Gross <markgross@kernel.org>
Cc: platform-driver-x86@vger.kernel.org
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20220607184635.1127913-4-steve@sk2.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/compal-laptop.c