hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/acpi/sbs.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sbs.c - ACPI Smart Battery System Driver ($Revision: 2.0 $)
34 *
45 * Copyright (c) 2007 Alexey Starikovskiy <astarikovskiy@suse.de>
56 * Copyright (c) 2005-2007 Vladimir Lebedev <vladimir.p.lebedev@intel.com>
67 * Copyright (c) 2005 Rich Townsend <rhdt@bartol.udel.edu>
7
- *
8
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
- *
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 (at
13
- * 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
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 */
229
2310 #include <linux/init.h>
....@@ -41,9 +28,6 @@
4128 #define ACPI_SBS_CLASS "sbs"
4229 #define ACPI_AC_CLASS "ac_adapter"
4330 #define ACPI_SBS_DEVICE_NAME "Smart Battery System"
44
-#define ACPI_SBS_FILE_INFO "info"
45
-#define ACPI_SBS_FILE_STATE "state"
46
-#define ACPI_SBS_FILE_ALARM "alarm"
4731 #define ACPI_BATTERY_DIR_NAME "BAT%i"
4832 #define ACPI_AC_DIR_NAME "AC0"
4933
....@@ -382,7 +366,7 @@
382366 state_readers[i].mode,
383367 ACPI_SBS_BATTERY,
384368 state_readers[i].command,
385
- (u8 *)battery +
369
+ (u8 *)battery +
386370 state_readers[i].offset);
387371 if (result)
388372 goto end;