Commit d82a905c authored by Patrick Mochel's avatar Patrick Mochel

ACPI: move PREFIX to a common header

parent 7f835fc5
......@@ -40,9 +40,6 @@ MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION(ACPI_AC_DRIVER_NAME);
MODULE_LICENSE("GPL");
#define PREFIX "ACPI: "
int acpi_ac_add (struct acpi_device *device);
int acpi_ac_remove (struct acpi_device *device, int type);
......
......@@ -35,6 +35,7 @@
#include "include/acpi.h"
#define PREFIX "ACPI: "
/* TBD: Make dynamic */
#define ACPI_MAX_HANDLES 10
......
......@@ -40,8 +40,6 @@ MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION(ACPI_BATTERY_DRIVER_NAME);
MODULE_LICENSE("GPL");
#define PREFIX "ACPI: "
#define ACPI_BATTERY_VALUE_UNKNOWN 0xFFFFFFFF
......
......@@ -31,8 +31,6 @@
#include <linux/acpi.h>
#include "acpi_bus.h"
#define PREFIX "ACPI: "
enum acpi_blacklist_predicates
{
all_versions,
......
......@@ -47,8 +47,6 @@ MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION(ACPI_BUS_DRIVER_NAME);
MODULE_LICENSE("GPL");
#define PREFIX "ACPI: "
extern void eisa_set_level_irq(unsigned int irq);
extern int acpi_disabled;
......
......@@ -40,9 +40,6 @@ MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION(ACPI_BUTTON_DRIVER_NAME);
MODULE_LICENSE("GPL");
#define PREFIX "ACPI: "
int acpi_button_add (struct acpi_device *device);
int acpi_button_remove (struct acpi_device *device, int type);
......
......@@ -38,9 +38,6 @@
#define _COMPONENT ACPI_EC_COMPONENT
ACPI_MODULE_NAME ("acpi_ec")
#define PREFIX "ACPI: "
#define ACPI_EC_FLAG_OBF 0x01 /* Output buffer full */
#define ACPI_EC_FLAG_IBF 0x02 /* Input buffer full */
#define ACPI_EC_FLAG_SCI 0x20 /* EC-SCI occurred */
......
......@@ -40,9 +40,6 @@ MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION(ACPI_FAN_DRIVER_NAME);
MODULE_LICENSE("GPL");
#define PREFIX "ACPI: "
int acpi_fan_add (struct acpi_device *device);
int acpi_fan_remove (struct acpi_device *device, int type);
......
......@@ -30,8 +30,6 @@
#include <linux/errno.h>
#include <linux/acpi.h>
#define PREFIX "ACPI: "
extern int __init acpi_table_parse_madt_family (enum acpi_table_id id, unsigned long madt_size, int entry_id, acpi_madt_entry_handler handler);
void __init
......
......@@ -39,9 +39,6 @@
#define _COMPONENT ACPI_PCI_COMPONENT
ACPI_MODULE_NAME ("pci_bind")
#define PREFIX "ACPI: "
struct acpi_pci_data {
acpi_pci_id id;
struct pci_bus *bus;
......
......@@ -41,8 +41,6 @@
#define _COMPONENT ACPI_PCI_COMPONENT
ACPI_MODULE_NAME ("pci_irq")
#define PREFIX "PCI: "
struct acpi_prt_list acpi_prt;
#ifdef CONFIG_X86
......
......@@ -45,9 +45,6 @@
#define _COMPONENT ACPI_PCI_COMPONENT
ACPI_MODULE_NAME ("pci_link")
#define PREFIX "ACPI: "
#define ACPI_PCI_LINK_MAX_POSSIBLE 16
static int acpi_pci_link_add (struct acpi_device *device);
......
......@@ -41,8 +41,6 @@ ACPI_MODULE_NAME ("pci_root")
extern struct pci_ops *pci_root_ops;
#define PREFIX "ACPI: "
static int acpi_pci_root_add (struct acpi_device *device);
static int acpi_pci_root_remove (struct acpi_device *device, int type);
......
......@@ -36,9 +36,6 @@
#define _COMPONENT ACPI_POWER_COMPONENT
ACPI_MODULE_NAME ("acpi_power")
#define PREFIX "ACPI: "
int acpi_power_add (struct acpi_device *device);
int acpi_power_remove (struct acpi_device *device, int type);
......
......@@ -51,8 +51,6 @@ MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION(ACPI_PROCESSOR_DRIVER_NAME);
MODULE_LICENSE("GPL");
#define PREFIX "ACPI: "
#define US_TO_PM_TIMER_TICKS(t) ((t * (PM_TIMER_FREQUENCY/1000)) / 1000)
#define C2_OVERHEAD 4 /* 1us (3.579 ticks per us) */
#define C3_OVERHEAD 4 /* 1us (3.579 ticks per us) */
......
......@@ -53,8 +53,6 @@
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME ("acpi_system")
#define PREFIX "ACPI: "
extern FADT_DESCRIPTOR acpi_fadt;
static int acpi_system_add (struct acpi_device *device);
......
......@@ -54,9 +54,6 @@ static int tzp = 0;
MODULE_PARM(tzp, "i");
MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.\n");
#define PREFIX "ACPI: "
#define ACPI_THERMAL_MAX_ACTIVE 10
#define KELVIN_TO_CELSIUS(t) ((t-2732+5)/10)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment