forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/platform/olpc/olpc-xo15-sci.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Support for OLPC XO-1.5 System Control Interrupts (SCI)
34 *
45 * Copyright (C) 2009-2010 One Laptop per Child
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
106 */
117
128 #include <linux/device.h>
....@@ -43,7 +39,7 @@
4339
4440 status = acpi_execute_simple_method(NULL, "\\_SB.PCI0.LID.LIDW", wake_on_close);
4541 if (ACPI_FAILURE(status)) {
46
- pr_warning(PFX "failed to set lid behavior\n");
42
+ pr_warn(PFX "failed to set lid behavior\n");
4743 return 1;
4844 }
4945
....@@ -79,7 +75,7 @@
7975
8076 static void battery_status_changed(void)
8177 {
82
- struct power_supply *psy = power_supply_get_by_name("olpc-battery");
78
+ struct power_supply *psy = power_supply_get_by_name("olpc_battery");
8379
8480 if (psy) {
8581 power_supply_changed(psy);
....@@ -89,7 +85,7 @@
8985
9086 static void ac_status_changed(void)
9187 {
92
- struct power_supply *psy = power_supply_get_by_name("olpc-ac");
88
+ struct power_supply *psy = power_supply_get_by_name("olpc_ac");
9389
9490 if (psy) {
9591 power_supply_changed(psy);