Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c05040c9
Commit
c05040c9
authored
Sep 19, 2002
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Re-enable compilation of ACPI subordinate drivers as modules
(Bjoern A. Zeeb)
parent
bd497561
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
49 deletions
+49
-49
drivers/acpi/ac.c
drivers/acpi/ac.c
+7
-7
drivers/acpi/battery.c
drivers/acpi/battery.c
+8
-8
drivers/acpi/button.c
drivers/acpi/button.c
+7
-7
drivers/acpi/fan.c
drivers/acpi/fan.c
+7
-7
drivers/acpi/processor.c
drivers/acpi/processor.c
+8
-8
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+12
-12
No files found.
drivers/acpi/ac.c
View file @
c05040c9
...
...
@@ -33,13 +33,6 @@
#include "acpi_drivers.h"
#define _COMPONENT ACPI_AC_COMPONENT
ACPI_MODULE_NAME
(
"acpi_ac"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_AC_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
#define ACPI_AC_COMPONENT 0x00020000
#define ACPI_AC_CLASS "ac_adapter"
#define ACPI_AC_HID "ACPI0003"
...
...
@@ -51,6 +44,13 @@ MODULE_LICENSE("GPL");
#define ACPI_AC_STATUS_ONLINE 0x01
#define ACPI_AC_STATUS_UNKNOWN 0xFF
#define _COMPONENT ACPI_AC_COMPONENT
ACPI_MODULE_NAME
(
"acpi_ac"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_AC_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
int
acpi_ac_add
(
struct
acpi_device
*
device
);
int
acpi_ac_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
drivers/acpi/battery.c
View file @
c05040c9
...
...
@@ -33,14 +33,6 @@
#include "acpi_drivers.h"
#define _COMPONENT ACPI_BATTERY_COMPONENT
ACPI_MODULE_NAME
(
"acpi_battery"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_BATTERY_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
#define ACPI_BATTERY_VALUE_UNKNOWN 0xFFFFFFFF
#define ACPI_BATTERY_FORMAT_BIF "NNNNNNNNNSSSS"
...
...
@@ -59,6 +51,14 @@ MODULE_LICENSE("GPL");
#define ACPI_BATTERY_UNITS_WATTS "mW"
#define ACPI_BATTERY_UNITS_AMPS "mA"
#define _COMPONENT ACPI_BATTERY_COMPONENT
ACPI_MODULE_NAME
(
"acpi_battery"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_BATTERY_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
static
int
acpi_battery_add
(
struct
acpi_device
*
device
);
static
int
acpi_battery_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
drivers/acpi/button.c
View file @
c05040c9
...
...
@@ -33,13 +33,6 @@
#include "acpi_drivers.h"
#define _COMPONENT ACPI_BUTTON_COMPONENT
ACPI_MODULE_NAME
(
"acpi_button"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_BUTTON_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
#define ACPI_BUTTON_COMPONENT 0x00080000
#define ACPI_BUTTON_DRIVER_NAME "ACPI Button Driver"
#define ACPI_BUTTON_CLASS "button"
...
...
@@ -66,6 +59,13 @@ MODULE_LICENSE("GPL");
#define ACPI_BUTTON_DEVICE_NAME_LID "Lid Switch"
#define ACPI_BUTTON_TYPE_LID 0x05
#define _COMPONENT ACPI_BUTTON_COMPONENT
ACPI_MODULE_NAME
(
"acpi_button"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_BUTTON_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
int
acpi_button_add
(
struct
acpi_device
*
device
);
int
acpi_button_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
drivers/acpi/fan.c
View file @
c05040c9
...
...
@@ -33,13 +33,6 @@
#include "acpi_drivers.h"
#define _COMPONENT ACPI_FAN_COMPONENT
ACPI_MODULE_NAME
(
"acpi_fan"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_FAN_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
#define ACPI_FAN_COMPONENT 0x00200000
#define ACPI_FAN_CLASS "fan"
#define ACPI_FAN_HID "PNP0C0B"
...
...
@@ -48,6 +41,13 @@ MODULE_LICENSE("GPL");
#define ACPI_FAN_FILE_STATE "state"
#define ACPI_FAN_NOTIFY_STATUS 0x80
#define _COMPONENT ACPI_FAN_COMPONENT
ACPI_MODULE_NAME
(
"acpi_fan"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_FAN_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
int
acpi_fan_add
(
struct
acpi_device
*
device
);
int
acpi_fan_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
drivers/acpi/processor.c
View file @
c05040c9
...
...
@@ -43,14 +43,6 @@
#include "acpi_bus.h"
#include "acpi_drivers.h"
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME
(
"acpi_processor"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_PROCESSOR_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
#define ACPI_PROCESSOR_COMPONENT 0x01000000
#define ACPI_PROCESSOR_CLASS "processor"
#define ACPI_PROCESSOR_DRIVER_NAME "ACPI Processor Driver"
...
...
@@ -84,6 +76,14 @@ const u32 POWER_OF_2[] = {1,2,4,8,16,32,64};
#define ACPI_PROCESSOR_LIMIT_USER 0
#define ACPI_PROCESSOR_LIMIT_THERMAL 1
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME
(
"acpi_processor"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_PROCESSOR_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
static
int
acpi_processor_add
(
struct
acpi_device
*
device
);
static
int
acpi_processor_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
drivers/acpi/thermal.c
View file @
c05040c9
...
...
@@ -42,18 +42,6 @@
#include "acpi_bus.h"
#include "acpi_drivers.h"
#define _COMPONENT ACPI_THERMAL_COMPONENT
ACPI_MODULE_NAME
(
"acpi_thermal"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_THERMAL_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
static
int
tzp
=
0
;
MODULE_PARM
(
tzp
,
"i"
);
MODULE_PARM_DESC
(
tzp
,
"Thermal zone polling frequency, in 1/10 seconds.
\n
"
);
#define ACPI_THERMAL_COMPONENT 0x04000000
#define ACPI_THERMAL_CLASS "thermal_zone"
#define ACPI_THERMAL_DRIVER_NAME "ACPI Thermal Zone Driver"
...
...
@@ -76,6 +64,18 @@ MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.\n");
#define KELVIN_TO_CELSIUS(t) ((t-2732+5)/10)
#define _COMPONENT ACPI_THERMAL_COMPONENT
ACPI_MODULE_NAME
(
"acpi_thermal"
)
MODULE_AUTHOR
(
"Paul Diefenbaugh"
);
MODULE_DESCRIPTION
(
ACPI_THERMAL_DRIVER_NAME
);
MODULE_LICENSE
(
"GPL"
);
static
int
tzp
=
0
;
MODULE_PARM
(
tzp
,
"i"
);
MODULE_PARM_DESC
(
tzp
,
"Thermal zone polling frequency, in 1/10 seconds.
\n
"
);
static
int
acpi_thermal_add
(
struct
acpi_device
*
device
);
static
int
acpi_thermal_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment