diff options
author | Alexander Mezin <mezin.alexander@gmail.com> | 2014-03-11 13:58:46 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-18 20:57:46 -0400 |
commit | f03be3525f1fac98b03a994522a7d78e9a70fe52 (patch) | |
tree | 039c18de5cd8496c701f208a641a04b060e2a2b3 /drivers/acpi/sbs.c | |
parent | dcb99fd9b08cfe1afe426af4d8d3cbc429190f15 (diff) |
ACPI / battery: move some ACPI_BATTERY_* definitions to header
ACPI_BATTERY_CLASS is used in multiple places.
Also, I'll use ACPI_BATTERY_NOTIFY_STATUS inside AC driver in
one of following patches.
So, create a header file and move ACPI_BATTERY_CLASS and
ACPI_BATTERY_NOTIFY_* definitions into it.
Also, remove copy of ACPI_BATTERY_CLASS from sbs.c
Signed-off-by: Alexander Mezin <mezin.alexander@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/sbs.c')
-rw-r--r-- | drivers/acpi/sbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index dbd48498b938..366ca40a6f70 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c | |||
@@ -37,12 +37,12 @@ | |||
37 | #include <linux/power_supply.h> | 37 | #include <linux/power_supply.h> |
38 | 38 | ||
39 | #include "sbshc.h" | 39 | #include "sbshc.h" |
40 | #include "battery.h" | ||
40 | 41 | ||
41 | #define PREFIX "ACPI: " | 42 | #define PREFIX "ACPI: " |
42 | 43 | ||
43 | #define ACPI_SBS_CLASS "sbs" | 44 | #define ACPI_SBS_CLASS "sbs" |
44 | #define ACPI_AC_CLASS "ac_adapter" | 45 | #define ACPI_AC_CLASS "ac_adapter" |
45 | #define ACPI_BATTERY_CLASS "battery" | ||
46 | #define ACPI_SBS_DEVICE_NAME "Smart Battery System" | 46 | #define ACPI_SBS_DEVICE_NAME "Smart Battery System" |
47 | #define ACPI_SBS_FILE_INFO "info" | 47 | #define ACPI_SBS_FILE_INFO "info" |
48 | #define ACPI_SBS_FILE_STATE "state" | 48 | #define ACPI_SBS_FILE_STATE "state" |