aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/battery.h
diff options
context:
space:
mode:
authorAlexander Mezin <mezin.alexander@gmail.com>2014-03-11 13:58:46 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-18 20:57:46 -0400
commitf03be3525f1fac98b03a994522a7d78e9a70fe52 (patch)
tree039c18de5cd8496c701f208a641a04b060e2a2b3 /drivers/acpi/battery.h
parentdcb99fd9b08cfe1afe426af4d8d3cbc429190f15 (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/battery.h')
-rw-r--r--drivers/acpi/battery.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/acpi/battery.h b/drivers/acpi/battery.h
new file mode 100644
index 000000000000..6c084976987d
--- /dev/null
+++ b/drivers/acpi/battery.h
@@ -0,0 +1,10 @@
1#ifndef __ACPI_BATTERY_H
2#define __ACPI_BATTERY_H
3
4#define ACPI_BATTERY_CLASS "battery"
5
6#define ACPI_BATTERY_NOTIFY_STATUS 0x80
7#define ACPI_BATTERY_NOTIFY_INFO 0x81
8#define ACPI_BATTERY_NOTIFY_THRESHOLD 0x82
9
10#endif