Skip to contentSkip to conversation

hw/acpi/piix4: Rename piix4_pm_add_propeties() to piix4_pm_add_properties()

PATCH Applied Greg Kurz 4 participants 4 messages Oct 2, 2020 – Oct 12, 2020

lore
Share & tools
lore

Greg Kurz

author
#0 lore raw

PATCH 1/1 hw/acpi/piix4: Rename piix4_pm_add_propeties() to piix4_pm_add_properties()

---
 hw/acpi/piix4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/acpi/piix4.c +2 -2
index 894d357f8c35..67a1ea41914f 100644
@@ -437,7 +437,7 @@ static void piix4_pm_machine_ready(Notifier *n, void *opaque)
         (memory_region_present(io_as, 0x2f8) ? 0x90 : 0);
 }
 
-static void piix4_pm_add_propeties(PIIX4PMState *s)
+static void piix4_pm_add_properties(PIIX4PMState *s)
 {
     static const uint8_t acpi_enable_cmd = ACPI_ENABLE;
     static const uint8_t acpi_disable_cmd = ACPI_DISABLE;
@@ -509,7 +509,7 @@ static void piix4_pm_realize(PCIDevice *dev, Error **errp)
                                    pci_get_bus(dev), s);
     qbus_set_hotplug_handler(BUS(pci_get_bus(dev)), OBJECT(s));
 
-    piix4_pm_add_propeties(s);
+    piix4_pm_add_properties(s);
 }
 
 I2CBus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
Reviewed-by on v1 1/1
#1 lore raw

On 10/2/20 6:06 PM, Greg Kurz wrote:

Maybe add "Fix a typo" to make it obvious.

Quoted 30 lines
---
 hw/acpi/piix4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/acpi/piix4.c +2 -2
index 894d357f8c35..67a1ea41914f 100644
@@ -437,7 +437,7 @@ static void piix4_pm_machine_ready(Notifier *n, void *opaque)
         (memory_region_present(io_as, 0x2f8) ? 0x90 : 0);
 }
 
-static void piix4_pm_add_propeties(PIIX4PMState *s)
+static void piix4_pm_add_properties(PIIX4PMState *s)
 {
     static const uint8_t acpi_enable_cmd = ACPI_ENABLE;
     static const uint8_t acpi_disable_cmd = ACPI_DISABLE;
@@ -509,7 +509,7 @@ static void piix4_pm_realize(PCIDevice *dev, Error **errp)
                                    pci_get_bus(dev), s);
     qbus_set_hotplug_handler(BUS(pci_get_bus(dev)), OBJECT(s));
 
-    piix4_pm_add_propeties(s);
+    piix4_pm_add_properties(s);
 }
 
 I2CBus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
Reviewed-by on v1 1/1
#2 lore raw
In reply to Greg Kurz
Quoted 2 lines · Greg Kurz <[email protected]> 于2020年10月3日周六 上午12:07写道:
Quoted 29 lines
---
 hw/acpi/piix4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/acpi/piix4.c +2 -2
index 894d357f8c35..67a1ea41914f 100644
@@ -437,7 +437,7 @@ static void piix4_pm_machine_ready(Notifier *n, void *opaque)
         (memory_region_present(io_as, 0x2f8) ? 0x90 : 0);
 }
 
-static void piix4_pm_add_propeties(PIIX4PMState *s)
+static void piix4_pm_add_properties(PIIX4PMState *s)
 {
     static const uint8_t acpi_enable_cmd = ACPI_ENABLE;
     static const uint8_t acpi_disable_cmd = ACPI_DISABLE;
@@ -509,7 +509,7 @@ static void piix4_pm_realize(PCIDevice *dev, Error **errp)
                                    pci_get_bus(dev), s);
     qbus_set_hotplug_handler(BUS(pci_get_bus(dev)), OBJECT(s));
 
-    piix4_pm_add_propeties(s);
+    piix4_pm_add_properties(s);
 }
 
 I2CBus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
#3 lore raw
In reply to Greg Kurz

Le 02/10/2020 à 18:06, Greg Kurz a écrit :

Quoted 22 lines
---
 hw/acpi/piix4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/acpi/piix4.c +1 -1
index 894d357f8c35..67a1ea41914f 100644
@@ -437,7 +437,7 @@ static void piix4_pm_machine_ready(Notifier *n, void *opaque)
         (memory_region_present(io_as, 0x2f8) ? 0x90 : 0);
 }
 
-static void piix4_pm_add_propeties(PIIX4PMState *s)
+static void piix4_pm_add_properties(PIIX4PMState *s)
 {
     static const uint8_t acpi_enable_cmd = ACPI_ENABLE;
     static const uint8_t acpi_disable_cmd = ACPI_DISABLE;

hw/acpi/piix4.c static void piix4_pm_realize(PCIDevice *dev, Error **errp) · line 515

Quoted 8 lines
hw/acpi/piix4.c +1 -1
@@ -509,7 +509,7 @@ static void piix4_pm_realize(PCIDevice *dev, Error **errp)
                                    pci_get_bus(dev), s);
     qbus_set_hotplug_handler(BUS(pci_get_bus(dev)), OBJECT(s));
 
-    piix4_pm_add_propeties(s);
+    piix4_pm_add_properties(s);
 }
 
 I2CBus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,

Applied to my trivial-patches branch.

Thanks,
Laurent