]> git.hungrycats.org Git - linux/commitdiff
Use C99 initializers (Rusty Russell)
authorAndy Grover <agrover@acpi3.(none)>
Thu, 25 Jul 2002 06:59:23 +0000 (23:59 -0700)
committerAndy Grover <agrover@acpi3.(none)>
Thu, 25 Jul 2002 06:59:23 +0000 (23:59 -0700)
12 files changed:
drivers/acpi/ac.c
drivers/acpi/battery.c
drivers/acpi/bus.c
drivers/acpi/button.c
drivers/acpi/fan.c
drivers/acpi/pci_irq.c
drivers/acpi/pci_link.c
drivers/acpi/pci_root.c
drivers/acpi/power.c
drivers/acpi/processor.c
drivers/acpi/system.c
drivers/acpi/thermal.c

index c98eefa44766f97d1a0fc01d95bde45ae91fb263..c9faecf0e4508929a6d350a8dcb7a3db4c4cd60f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_ac.c - ACPI AC Adapter Driver ($Revision: 26 $)
+ *  acpi_ac.c - ACPI AC Adapter Driver ($Revision: 27 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -47,13 +47,13 @@ int acpi_ac_add (struct acpi_device *device);
 int acpi_ac_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_ac_driver = {
-       name:                   ACPI_AC_DRIVER_NAME,
-       class:                  ACPI_AC_CLASS,
-       ids:                    ACPI_AC_HID,
-       ops:                    {
-                                       add:    acpi_ac_add,
-                                       remove: acpi_ac_remove,
-                               },
+       .name =         ACPI_AC_DRIVER_NAME,
+       .class =        ACPI_AC_CLASS,
+       .ids =          ACPI_AC_HID,
+       .ops =          {
+                               .add =  acpi_ac_add,
+                               .remove =       acpi_ac_remove,
+                       },
 };
 
 struct acpi_ac {
index 6684da84decd4757cc56ced91906efd83799e9ea..6a096d8c14639e639f66a20545e8bafd3b5f6aa7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_battery.c - ACPI Battery Driver ($Revision: 36 $)
+ *  acpi_battery.c - ACPI Battery Driver ($Revision: 37 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -52,13 +52,13 @@ static int acpi_battery_add (struct acpi_device *device);
 static int acpi_battery_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_battery_driver = {
-       name:                   ACPI_BATTERY_DRIVER_NAME,
-       class:                  ACPI_BATTERY_CLASS,
-       ids:                    ACPI_BATTERY_HID,
-       ops:                    {
-                                       add:    acpi_battery_add,
-                                       remove: acpi_battery_remove,
-                               },
+       .name =         ACPI_BATTERY_DRIVER_NAME,
+       .class =        ACPI_BATTERY_CLASS,
+       .ids =          ACPI_BATTERY_HID,
+       .ops =          {
+                               .add =          acpi_battery_add,
+                               .remove =       acpi_battery_remove,
+                       },
 };
 
 struct acpi_battery_status {
index 900cbe0de6b237fbe60aa1d77b2c168e088dbb2d..881d02a7c5c793ccc8bcf0fc06c8391542a4b267 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_bus.c - ACPI Bus Driver ($Revision: 79 $)
+ *  acpi_bus.c - ACPI Bus Driver ($Revision: 80 $)
  *
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
  *
@@ -97,10 +97,10 @@ static int acpi_device_suspend(struct device *dev, u32 state, u32 stage);
 static int acpi_device_resume(struct device *dev, u32 stage);
 
 static struct device_driver acpi_bus_driver = {
-       probe: acpi_device_probe,
-       remove: acpi_device_remove,     
-       suspend: acpi_device_suspend,
-       resume: acpi_device_resume,
+       .probe = acpi_device_probe,
+       .remove = acpi_device_remove,   
+       .suspend = acpi_device_suspend,
+       .resume = acpi_device_resume,
 };
 
 
index 5beed76b3dd3f38f6c983b7c3f7c8188980aeba0..cdd6c926ea5c5c7c9b1e6c8bfaec32ccc5c6731f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_button.c - ACPI Button Driver ($Revision: 29 $)
+ *  acpi_button.c - ACPI Button Driver ($Revision: 30 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -47,13 +47,13 @@ int acpi_button_add (struct acpi_device *device);
 int acpi_button_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_button_driver = {
-       name:                   ACPI_BUTTON_DRIVER_NAME,
-       class:                  ACPI_BUTTON_CLASS,
-       ids:                    "ACPI_FPB,ACPI_FSB,PNP0C0D,PNP0C0C,PNP0C0E",
-       ops:                    {
-                                       add:    acpi_button_add,
-                                       remove: acpi_button_remove,
-                               },
+       .name =         ACPI_BUTTON_DRIVER_NAME,
+       .class =        ACPI_BUTTON_CLASS,
+       .ids =          "ACPI_FPB,ACPI_FSB,PNP0C0D,PNP0C0C,PNP0C0E",
+       .ops =          {
+                               .add =          acpi_button_add,
+                               .remove =       acpi_button_remove,
+                       },
 };
 
 struct acpi_button {
index 3429bbf111be29e0ec8dec2ac43220eb458a27a6..3b3c728d3eacb3370c0f848b2f60f24dd74c0870 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_fan.c - ACPI Fan Driver ($Revision: 28 $)
+ *  acpi_fan.c - ACPI Fan Driver ($Revision: 29 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -47,13 +47,13 @@ int acpi_fan_add (struct acpi_device *device);
 int acpi_fan_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_fan_driver = {
-       name:                   ACPI_FAN_DRIVER_NAME,
-       class:                  ACPI_FAN_CLASS,
-       ids:                    ACPI_FAN_HID,
-       ops:                    {
-                                       add:    acpi_fan_add,
-                                       remove: acpi_fan_remove,
-                               },
+       .name =         ACPI_FAN_DRIVER_NAME,
+       .class =        ACPI_FAN_CLASS,
+       .ids =          ACPI_FAN_HID,
+       .ops =          {
+                               .add =          acpi_fan_add,
+                               .remove =       acpi_fan_remove,
+                       },
 };
 
 struct acpi_fan {
index a2b1cd5950578c692528f80e9da986620fca847a..5d5edb42f24c27dd50929af8f75eb51785351503 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  pci_irq.c - ACPI PCI Interrupt Routing ($Revision: 10 $)
+ *  pci_irq.c - ACPI PCI Interrupt Routing ($Revision: 11 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
index 2320a8e016bdbe526f22797fbca98ce22a17e4bf..b94b85b1cea4823f3a7c90738fbd839cde6b001e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  pci_link.c - ACPI PCI Interrupt Link Device Driver ($Revision: 33 $)
+ *  pci_link.c - ACPI PCI Interrupt Link Device Driver ($Revision: 34 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -54,13 +54,13 @@ static int acpi_pci_link_add (struct acpi_device *device);
 static int acpi_pci_link_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_pci_link_driver = {
-        name:                   ACPI_PCI_LINK_DRIVER_NAME,
-        class:                  ACPI_PCI_LINK_CLASS,
-        ids:                    ACPI_PCI_LINK_HID,
-        ops:                    {
-                                        add:    acpi_pci_link_add,
-                                        remove: acpi_pci_link_remove,
-                                },
+        .name =                ACPI_PCI_LINK_DRIVER_NAME,
+        .class =       ACPI_PCI_LINK_CLASS,
+        .ids =         ACPI_PCI_LINK_HID,
+        .ops =         {
+                               .add =          acpi_pci_link_add,
+                               .remove =       acpi_pci_link_remove,
+                       },
 };
 
 struct acpi_pci_link_irq {
index 7fef16be6d47f1860c01cf039e402fda32152018..a56fedea61b4bcd81300d04377a010c145531399 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  pci_root.c - ACPI PCI Root Bridge Driver ($Revision: 39 $)
+ *  pci_root.c - ACPI PCI Root Bridge Driver ($Revision: 40 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -47,13 +47,13 @@ static int acpi_pci_root_add (struct acpi_device *device);
 static int acpi_pci_root_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_pci_root_driver = {
-        name:                   ACPI_PCI_ROOT_DRIVER_NAME,
-        class:                  ACPI_PCI_ROOT_CLASS,
-        ids:                    ACPI_PCI_ROOT_HID,
-        ops:                    {
-                                        add:    acpi_pci_root_add,
-                                        remove: acpi_pci_root_remove,
-                                },
+       .name =         ACPI_PCI_ROOT_DRIVER_NAME,
+       .class =        ACPI_PCI_ROOT_CLASS,
+       .ids =          ACPI_PCI_ROOT_HID,
+       .ops =          {
+                               .add =          acpi_pci_root_add,
+                               .remove =       acpi_pci_root_remove,
+                       },
 };
 
  struct acpi_pci_root {
index 5e4f55dbfc9087507110490bf70f1e6281b05719..986ebd729528ac4dae515d3e58ca904285f6b61d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_power.c - ACPI Bus Power Management ($Revision: 38 $)
+ *  acpi_power.c - ACPI Bus Power Management ($Revision: 39 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -43,13 +43,13 @@ int acpi_power_add (struct acpi_device *device);
 int acpi_power_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_power_driver = {
-       name:                   ACPI_POWER_DRIVER_NAME,
-       class:                  ACPI_POWER_CLASS,
-       ids:                    ACPI_POWER_HID,
-       ops:                    {
-                                       add:    acpi_power_add,
-                                       remove: acpi_power_remove,
-                               },
+       .name =         ACPI_POWER_DRIVER_NAME,
+       .class =        ACPI_POWER_CLASS,
+       .ids =          ACPI_POWER_HID,
+       .ops =          {
+                               .add =          acpi_power_add,
+                               .remove =       acpi_power_remove,
+                       },
 };
 
 struct acpi_power_resource
index 028ee228dcb0b78645bbca0ac44d15a6229d696e..933251d46b19e8f255708d3e743dcd67c2ccc971 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * acpi_processor.c - ACPI Processor Driver ($Revision: 69 $)
+ * acpi_processor.c - ACPI Processor Driver ($Revision: 71 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -78,13 +78,13 @@ static int acpi_processor_add (struct acpi_device *device);
 static int acpi_processor_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_processor_driver = {
-       name:                   ACPI_PROCESSOR_DRIVER_NAME,
-       class:                  ACPI_PROCESSOR_CLASS,
-       ids:                    ACPI_PROCESSOR_HID,
-       ops:                    {
-                                       add:    acpi_processor_add,
-                                       remove: acpi_processor_remove,
-                               },
+       .name =         ACPI_PROCESSOR_DRIVER_NAME,
+       .class =        ACPI_PROCESSOR_CLASS,
+       .ids =          ACPI_PROCESSOR_HID,
+       .ops =          {
+                               .add =          acpi_processor_add,
+                               .remove =       acpi_processor_remove,
+                       },
 };
 
 /* Power Management */
index 1bd1555510b02fce216a241371966710045729b1..bfd02982e2343c5543d802193373f2ae4aa2f9a8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_system.c - ACPI System Driver ($Revision: 60 $)
+ *  acpi_system.c - ACPI System Driver ($Revision: 63 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -63,13 +63,13 @@ static int acpi_system_add (struct acpi_device *device);
 static int acpi_system_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_system_driver = {
-       name:                   ACPI_SYSTEM_DRIVER_NAME,
-       class:                  ACPI_SYSTEM_CLASS,
-       ids:                    ACPI_SYSTEM_HID,
-       ops:                    {
-                                       add:    acpi_system_add,
-                                       remove: acpi_system_remove
-                               },
+       .name =         ACPI_SYSTEM_DRIVER_NAME,
+       .class =        ACPI_SYSTEM_CLASS,
+       .ids =          ACPI_SYSTEM_HID,
+       .ops =          {
+                               .add =          acpi_system_add,
+                               .remove =       acpi_system_remove
+                       },
 };
 
 struct acpi_system
@@ -383,10 +383,10 @@ static unsigned int acpi_system_poll_event(struct file *file, poll_table *wait);
 
 
 static struct file_operations acpi_system_event_ops = {
-       open:           acpi_system_open_event,
-       read:           acpi_system_read_event,
-       release:        acpi_system_close_event,
-       poll:           acpi_system_poll_event,
+       .open =         acpi_system_open_event,
+       .read =         acpi_system_read_event,
+       .release =      acpi_system_close_event,
+       .poll =         acpi_system_poll_event,
 };
 
 static int
@@ -479,7 +479,7 @@ acpi_system_poll_event(
 static ssize_t acpi_system_read_dsdt (struct file*, char*, size_t, loff_t*);
 
 static struct file_operations acpi_system_dsdt_ops = {
-       read:                   acpi_system_read_dsdt,
+       .read =                 acpi_system_read_dsdt,
 };
 
 static ssize_t
@@ -522,7 +522,7 @@ acpi_system_read_dsdt (
 static ssize_t acpi_system_read_fadt (struct file*, char*, size_t, loff_t*);
 
 static struct file_operations acpi_system_fadt_ops = {
-       read:                   acpi_system_read_fadt,
+       .read =                 acpi_system_read_fadt,
 };
 
 static ssize_t
@@ -1165,15 +1165,15 @@ acpi_system_remove_fs (
 
 /* Simple wrapper calling power down function. */
 static void acpi_sysrq_power_off(int key, struct pt_regs *pt_regs,
-                                struct tty_struct *tty)
+       struct tty_struct *tty)
 {
        acpi_power_off();
 }
 
 struct sysrq_key_op sysrq_acpi_poweroff_op = {
-       handler:        &acpi_sysrq_power_off,
-       help_msg:       "Off",
-       action_msg:     "Power Off\n"
+       .handler =      &acpi_sysrq_power_off,
+       .help_msg =     "Off",
+       .action_msg =   "Power Off\n"
 };
 
 #endif  /* CONFIG_MAGIC_SYSRQ */
index 0836b31843ca28748040434fc4b4c8869d72f37b..bf5521e3403f11b26d6c873a400b79e8665700e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  acpi_thermal.c - ACPI Thermal Zone Driver ($Revision: 40 $)
+ *  acpi_thermal.c - ACPI Thermal Zone Driver ($Revision: 41 $)
  *
  *  Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
  *  Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -65,13 +65,13 @@ static int acpi_thermal_add (struct acpi_device *device);
 static int acpi_thermal_remove (struct acpi_device *device, int type);
 
 static struct acpi_driver acpi_thermal_driver = {
-       name:                   ACPI_THERMAL_DRIVER_NAME,
-       class:                  ACPI_THERMAL_CLASS,
-       ids:                    ACPI_THERMAL_HID,
-       ops:                    {
-                                       add:    acpi_thermal_add,
-                                       remove: acpi_thermal_remove,
-                               },
+       .name =         ACPI_THERMAL_DRIVER_NAME,
+       .class =        ACPI_THERMAL_CLASS,
+       .ids =          ACPI_THERMAL_HID,
+       .ops =          {
+                               .add =          acpi_thermal_add,
+                               .remove =       acpi_thermal_remove,
+                       },
 };
 
 struct acpi_thermal_state {