hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/video/backlight/jornada720_bl.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 *
34 * Backlight driver for HP Jornada 700 series (710/720/728)
45 * Copyright (C) 2006-2009 Kristoffer Ericson <kristoffer.ericson@gmail.com>
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License version
8
- * 2 or any later version as published by the Free Software Foundation.
9
- *
106 */
117
128 #include <linux/backlight.h>
....@@ -58,7 +54,7 @@
5854 jornada_ssp_start();
5955
6056 /* If backlight is off then really turn it off */
61
- if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) {
57
+ if (backlight_is_blank(bd)) {
6258 ret = jornada_ssp_byte(BRIGHTNESSOFF);
6359 if (ret != TXDUMMY) {
6460 dev_info(&bd->dev, "brightness off timeout\n");