hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/video/backlight/kb3886_bl.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Backlight Driver for the KB3886 Backlight
34 *
45 * Copyright (c) 2007-2008 Claudio Nieder
56 *
67 * Based on corgi_bl.c by Richard Purdie and kb3886 driver by Robert Woerle
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
128 */
139
1410 #include <linux/module.h>
....@@ -91,12 +87,8 @@
9187
9288 static int kb3886bl_send_intensity(struct backlight_device *bd)
9389 {
94
- int intensity = bd->props.brightness;
90
+ int intensity = backlight_get_brightness(bd);
9591
96
- if (bd->props.power != FB_BLANK_UNBLANK)
97
- intensity = 0;
98
- if (bd->props.fb_blank != FB_BLANK_UNBLANK)
99
- intensity = 0;
10092 if (kb3886bl_flags & KB3886BL_SUSPENDED)
10193 intensity = 0;
10294