forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/platform/x86/compal-laptop.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*-*-linux-c-*-*/
23
34 /*
....@@ -7,20 +8,6 @@
78
89 Copyright (C) 2006 Lennart Poettering <mzxreary (at) 0pointer (dot) de>
910
10
- This program is free software; you can redistribute it and/or modify
11
- it under the terms of the GNU General Public License as published by
12
- the Free Software Foundation; either version 2 of the License, or
13
- (at your option) any later version.
14
-
15
- This program is distributed in the hope that it will be useful, but
16
- WITHOUT ANY WARRANTY; without even the implied warranty of
17
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- General Public License for more details.
19
-
20
- You should have received a copy of the GNU General Public License
21
- along with this program; if not, write to the Free Software
22
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
- 02110-1301, USA.
2411 */
2512
2613 /*
....@@ -239,7 +226,7 @@
239226 /* General access */
240227 static u8 ec_read_u8(u8 addr)
241228 {
242
- u8 value;
229
+ u8 value = 0;
243230 ec_read(addr, &value);
244231 return value;
245232 }