aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2007-02-12 23:33:40 -0500
committerLen Brown <len.brown@intel.com>2007-02-12 23:33:40 -0500
commitc2b6705b75d9c7aff98a4602a32230639e10891c (patch)
tree757089d71810040b8dfb763e1ec4d2775609019d
parentf52fd66d2ea794010c2d7536cf8e6abed0ac4947 (diff)
ACPI: fix acpi_driver.name usage
It was erroneously used as a description rather than a name. ie. turn this: lenb@se7525gp2:/sys> ls bus/acpi/drivers ACPI AC Adapter Driver ACPI Embedded Controller Driver ACPI Power Resource Driver ACPI Battery Driver ACPI Fan Driver ACPI Processor Driver ACPI Button Driver ACPI PCI Interrupt Link Driver ACPI Thermal Zone Driver ACPI container driver ACPI PCI Root Bridge Driver hpet into this: lenb@se7525gp2:~> ls /sys/bus/acpi/drivers ac battery button container ec fan hpet pci_link pci_root power processor thermal Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/acpi/ac.c2
-rw-r--r--drivers/acpi/acpi_memhotplug.c2
-rw-r--r--drivers/acpi/asus_acpi.c2
-rw-r--r--drivers/acpi/battery.c2
-rw-r--r--drivers/acpi/bay.c2
-rw-r--r--drivers/acpi/button.c2
-rw-r--r--drivers/acpi/container.c2
-rw-r--r--drivers/acpi/ec.c2
-rw-r--r--drivers/acpi/fan.c2
-rw-r--r--drivers/acpi/i2c_ec.c2
-rw-r--r--drivers/acpi/pci_link.c2
-rw-r--r--drivers/acpi/pci_root.c2
-rw-r--r--drivers/acpi/power.c2
-rw-r--r--drivers/acpi/processor_core.c2
-rw-r--r--drivers/acpi/sbs.c2
-rw-r--r--drivers/acpi/thermal.c2
-rw-r--r--drivers/acpi/video.c2
17 files changed, 17 insertions, 17 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index a9b30e60a95..17eef27b9ce 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -58,7 +58,7 @@ static int acpi_ac_remove(struct acpi_device *device, int type);
58static int acpi_ac_open_fs(struct inode *inode, struct file *file); 58static int acpi_ac_open_fs(struct inode *inode, struct file *file);
59 59
60static struct acpi_driver acpi_ac_driver = { 60static struct acpi_driver acpi_ac_driver = {
61 .name = ACPI_AC_DRIVER_NAME, 61 .name = "ac",
62 .class = ACPI_AC_CLASS, 62 .class = ACPI_AC_CLASS,
63 .ids = ACPI_AC_HID, 63 .ids = ACPI_AC_HID,
64 .ops = { 64 .ops = {
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index 88a6dc378da..d677130f989 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -60,7 +60,7 @@ static int acpi_memory_device_remove(struct acpi_device *device, int type);
60static int acpi_memory_device_start(struct acpi_device *device); 60static int acpi_memory_device_start(struct acpi_device *device);
61 61
62static struct acpi_driver acpi_memory_device_driver = { 62static struct acpi_driver acpi_memory_device_driver = {
63 .name = ACPI_MEMORY_DEVICE_DRIVER_NAME, 63 .name = "acpi_memhotplug",
64 .class = ACPI_MEMORY_DEVICE_CLASS, 64 .class = ACPI_MEMORY_DEVICE_CLASS,
65 .ids = ACPI_MEMORY_DEVICE_HID, 65 .ids = ACPI_MEMORY_DEVICE_HID,
66 .ops = { 66 .ops = {
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index 31ad70a6e22..40a2f4cb4ac 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -421,7 +421,7 @@ static struct asus_hotk *hotk;
421static int asus_hotk_add(struct acpi_device *device); 421static int asus_hotk_add(struct acpi_device *device);
422static int asus_hotk_remove(struct acpi_device *device, int type); 422static int asus_hotk_remove(struct acpi_device *device, int type);
423static struct acpi_driver asus_hotk_driver = { 423static struct acpi_driver asus_hotk_driver = {
424 .name = ACPI_HOTK_NAME, 424 .name = "asus_acpi",
425 .class = ACPI_HOTK_CLASS, 425 .class = ACPI_HOTK_CLASS,
426 .ids = ACPI_HOTK_HID, 426 .ids = ACPI_HOTK_HID,
427 .ops = { 427 .ops = {
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 4b8db56721c..da29d9d61c3 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -67,7 +67,7 @@ static int acpi_battery_remove(struct acpi_device *device, int type);
67static int acpi_battery_resume(struct acpi_device *device); 67static int acpi_battery_resume(struct acpi_device *device);
68 68
69static struct acpi_driver acpi_battery_driver = { 69static struct acpi_driver acpi_battery_driver = {
70 .name = ACPI_BATTERY_DRIVER_NAME, 70 .name = "battery",
71 .class = ACPI_BATTERY_CLASS, 71 .class = ACPI_BATTERY_CLASS,
72 .ids = ACPI_BATTERY_HID, 72 .ids = ACPI_BATTERY_HID,
73 .ops = { 73 .ops = {
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c
index 19fe57db397..1f88858eb60 100644
--- a/drivers/acpi/bay.c
+++ b/drivers/acpi/bay.c
@@ -51,7 +51,7 @@ static int acpi_bay_add(struct acpi_device *device);
51static int acpi_bay_remove(struct acpi_device *device, int type); 51static int acpi_bay_remove(struct acpi_device *device, int type);
52 52
53static struct acpi_driver acpi_bay_driver = { 53static struct acpi_driver acpi_bay_driver = {
54 .name = ACPI_BAY_DRIVER_NAME, 54 .name = "bay",
55 .class = ACPI_BAY_CLASS, 55 .class = ACPI_BAY_CLASS,
56 .ids = ACPI_BAY_HID, 56 .ids = ACPI_BAY_HID,
57 .ops = { 57 .ops = {
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 28ce5c62a09..45f960d4cd8 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -73,7 +73,7 @@ static int acpi_button_info_open_fs(struct inode *inode, struct file *file);
73static int acpi_button_state_open_fs(struct inode *inode, struct file *file); 73static int acpi_button_state_open_fs(struct inode *inode, struct file *file);
74 74
75static struct acpi_driver acpi_button_driver = { 75static struct acpi_driver acpi_button_driver = {
76 .name = ACPI_BUTTON_DRIVER_NAME, 76 .name = "button",
77 .class = ACPI_BUTTON_CLASS, 77 .class = ACPI_BUTTON_CLASS,
78 .ids = "button_power,button_sleep,PNP0C0D,PNP0C0C,PNP0C0E", 78 .ids = "button_power,button_sleep,PNP0C0D,PNP0C0C,PNP0C0E",
79 .ops = { 79 .ops = {
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c
index f3e59af419e..0e36062dc1f 100644
--- a/drivers/acpi/container.c
+++ b/drivers/acpi/container.c
@@ -56,7 +56,7 @@ static int acpi_container_add(struct acpi_device *device);
56static int acpi_container_remove(struct acpi_device *device, int type); 56static int acpi_container_remove(struct acpi_device *device, int type);
57 57
58static struct acpi_driver acpi_container_driver = { 58static struct acpi_driver acpi_container_driver = {
59 .name = ACPI_CONTAINER_DRIVER_NAME, 59 .name = "container",
60 .class = ACPI_CONTAINER_CLASS, 60 .class = ACPI_CONTAINER_CLASS,
61 .ids = "ACPI0004,PNP0A05,PNP0A06", 61 .ids = "ACPI0004,PNP0A05,PNP0A06",
62 .ops = { 62 .ops = {
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index a5c0b5cd906..9d6795299af 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -80,7 +80,7 @@ static int acpi_ec_stop(struct acpi_device *device, int type);
80static int acpi_ec_add(struct acpi_device *device); 80static int acpi_ec_add(struct acpi_device *device);
81 81
82static struct acpi_driver acpi_ec_driver = { 82static struct acpi_driver acpi_ec_driver = {
83 .name = ACPI_EC_DRIVER_NAME, 83 .name = "ec",
84 .class = ACPI_EC_CLASS, 84 .class = ACPI_EC_CLASS,
85 .ids = ACPI_EC_HID, 85 .ids = ACPI_EC_HID,
86 .ops = { 86 .ops = {
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index b902d3b082e..5ac727effe3 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -52,7 +52,7 @@ static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state);
52static int acpi_fan_resume(struct acpi_device *device); 52static int acpi_fan_resume(struct acpi_device *device);
53 53
54static struct acpi_driver acpi_fan_driver = { 54static struct acpi_driver acpi_fan_driver = {
55 .name = ACPI_FAN_DRIVER_NAME, 55 .name = "fan",
56 .class = ACPI_FAN_CLASS, 56 .class = ACPI_FAN_CLASS,
57 .ids = "PNP0C0B", 57 .ids = "PNP0C0B",
58 .ops = { 58 .ops = {
diff --git a/drivers/acpi/i2c_ec.c b/drivers/acpi/i2c_ec.c
index 62af6da819c..d2fde7ab362 100644
--- a/drivers/acpi/i2c_ec.c
+++ b/drivers/acpi/i2c_ec.c
@@ -39,7 +39,7 @@ static int acpi_ec_hc_add(struct acpi_device *device);
39static int acpi_ec_hc_remove(struct acpi_device *device, int type); 39static int acpi_ec_hc_remove(struct acpi_device *device, int type);
40 40
41static struct acpi_driver acpi_ec_hc_driver = { 41static struct acpi_driver acpi_ec_hc_driver = {
42 .name = ACPI_EC_HC_DRIVER_NAME, 42 .name = "i2c_ec",
43 .class = ACPI_EC_HC_CLASS, 43 .class = ACPI_EC_HC_CLASS,
44 .ids = ACPI_EC_HC_HID, 44 .ids = ACPI_EC_HC_HID,
45 .ops = { 45 .ops = {
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index da22c5e612a..a95f03fa03b 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -56,7 +56,7 @@ static int acpi_pci_link_add(struct acpi_device *device);
56static int acpi_pci_link_remove(struct acpi_device *device, int type); 56static int acpi_pci_link_remove(struct acpi_device *device, int type);
57 57
58static struct acpi_driver acpi_pci_link_driver = { 58static struct acpi_driver acpi_pci_link_driver = {
59 .name = ACPI_PCI_LINK_DRIVER_NAME, 59 .name = "pci_link",
60 .class = ACPI_PCI_LINK_CLASS, 60 .class = ACPI_PCI_LINK_CLASS,
61 .ids = ACPI_PCI_LINK_HID, 61 .ids = ACPI_PCI_LINK_HID,
62 .ops = { 62 .ops = {
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index 3db2cd3b6c3..7bf24c39ceb 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -46,7 +46,7 @@ static int acpi_pci_root_remove(struct acpi_device *device, int type);
46static int acpi_pci_root_start(struct acpi_device *device); 46static int acpi_pci_root_start(struct acpi_device *device);
47 47
48static struct acpi_driver acpi_pci_root_driver = { 48static struct acpi_driver acpi_pci_root_driver = {
49 .name = ACPI_PCI_ROOT_DRIVER_NAME, 49 .name = "pci_root",
50 .class = ACPI_PCI_ROOT_CLASS, 50 .class = ACPI_PCI_ROOT_CLASS,
51 .ids = ACPI_PCI_ROOT_HID, 51 .ids = ACPI_PCI_ROOT_HID,
52 .ops = { 52 .ops = {
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 26e8edcf18e..09b855d3a92 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -60,7 +60,7 @@ static int acpi_power_remove(struct acpi_device *device, int type);
60static int acpi_power_open_fs(struct inode *inode, struct file *file); 60static int acpi_power_open_fs(struct inode *inode, struct file *file);
61 61
62static struct acpi_driver acpi_power_driver = { 62static struct acpi_driver acpi_power_driver = {
63 .name = ACPI_POWER_DRIVER_NAME, 63 .name = "power",
64 .class = ACPI_POWER_CLASS, 64 .class = ACPI_POWER_CLASS,
65 .ids = ACPI_POWER_HID, 65 .ids = ACPI_POWER_HID,
66 .ops = { 66 .ops = {
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 13135f8d283..19c44b52b05 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -89,7 +89,7 @@ static acpi_status acpi_processor_hotadd_init(acpi_handle handle, int *p_cpu);
89static int acpi_processor_handle_eject(struct acpi_processor *pr); 89static int acpi_processor_handle_eject(struct acpi_processor *pr);
90 90
91static struct acpi_driver acpi_processor_driver = { 91static struct acpi_driver acpi_processor_driver = {
92 .name = ACPI_PROCESSOR_DRIVER_NAME, 92 .name = "processor",
93 .class = ACPI_PROCESSOR_CLASS, 93 .class = ACPI_PROCESSOR_CLASS,
94 .ids = ACPI_PROCESSOR_HID, 94 .ids = ACPI_PROCESSOR_HID,
95 .ops = { 95 .ops = {
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index f5b714da260..1c2d8fb0775 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -110,7 +110,7 @@ static void acpi_battery_smbus_err_handler(struct acpi_ec_smbus *smbus);
110static void acpi_sbs_update_queue(void *data); 110static void acpi_sbs_update_queue(void *data);
111 111
112static struct acpi_driver acpi_sbs_driver = { 112static struct acpi_driver acpi_sbs_driver = {
113 .name = ACPI_SBS_DRIVER_NAME, 113 .name = "sbs",
114 .class = ACPI_SBS_CLASS, 114 .class = ACPI_SBS_CLASS,
115 .ids = ACPI_SBS_HID, 115 .ids = ACPI_SBS_HID,
116 .ops = { 116 .ops = {
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index bf0a9f2e37e..c34a89d3456 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -98,7 +98,7 @@ static ssize_t acpi_thermal_write_polling(struct file *, const char __user *,
98 size_t, loff_t *); 98 size_t, loff_t *);
99 99
100static struct acpi_driver acpi_thermal_driver = { 100static struct acpi_driver acpi_thermal_driver = {
101 .name = ACPI_THERMAL_DRIVER_NAME, 101 .name = "thermal",
102 .class = ACPI_THERMAL_CLASS, 102 .class = ACPI_THERMAL_CLASS,
103 .ids = ACPI_THERMAL_HID, 103 .ids = ACPI_THERMAL_HID,
104 .ops = { 104 .ops = {
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index a095d018fab..0c44ffd1e51 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -75,7 +75,7 @@ static int acpi_video_bus_add(struct acpi_device *device);
75static int acpi_video_bus_remove(struct acpi_device *device, int type); 75static int acpi_video_bus_remove(struct acpi_device *device, int type);
76 76
77static struct acpi_driver acpi_video_bus = { 77static struct acpi_driver acpi_video_bus = {
78 .name = ACPI_VIDEO_DRIVER_NAME, 78 .name = "video",
79 .class = ACPI_VIDEO_CLASS, 79 .class = ACPI_VIDEO_CLASS,
80 .ids = ACPI_VIDEO_HID, 80 .ids = ACPI_VIDEO_HID,
81 .ops = { 81 .ops = {