[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/10] qdev: Complete qdev_init_gpio_out() documentation
From: |
Laurent Vivier |
Subject: |
[PULL 03/10] qdev: Complete qdev_init_gpio_out() documentation |
Date: |
Thu, 16 Sep 2021 16:10:19 +0200 |
From: Philippe Mathieu-Daudé <philmd@redhat.com>
qdev_init_gpio_out() states it "creates an array of anonymous
output GPIO lines" but doesn't document how this array is
released. Add a note that it is automatically free'd in qdev
instance_finalize().
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210819142731.2827912-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
include/hw/qdev-core.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h
index 762f9584dde1..34c8a7506a1b 100644
--- a/include/hw/qdev-core.h
+++ b/include/hw/qdev-core.h
@@ -598,6 +598,10 @@ void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler
handler, int n);
*
* See qdev_connect_gpio_out() for how code that uses such a device
* can connect to one of its output GPIO lines.
+ *
+ * There is no need to release the @pins allocated array because it
+ * will be automatically released when @dev calls its instance_finalize()
+ * handler.
*/
void qdev_init_gpio_out(DeviceState *dev, qemu_irq *pins, int n);
/**
--
2.31.1
- [PULL 00/10] Trivial branch for 6.2 patches, Laurent Vivier, 2021/09/16
- [PULL 03/10] qdev: Complete qdev_init_gpio_out() documentation,
Laurent Vivier <=
- [PULL 09/10] target/avr: Fix compiler errors (-Werror=enum-conversion), Laurent Vivier, 2021/09/16
- [PULL 06/10] target/i386: spelling: occured=>occurred, mininum=>minimum, Laurent Vivier, 2021/09/16
- [PULL 05/10] configure: add missing pc-bios/qemu_vga.ndrv symlink in build tree, Laurent Vivier, 2021/09/16
- [PULL 04/10] spelling: sytem => system, Laurent Vivier, 2021/09/16
- [PULL 02/10] hw/i386/acpi-build: Fix a typo, Laurent Vivier, 2021/09/16
- [PULL 07/10] intel_iommu: Fix typo in comments, Laurent Vivier, 2021/09/16
- [PULL 01/10] util: Remove redundant checks in the openpty(), Laurent Vivier, 2021/09/16
- [PULL 08/10] hw/vfio: Fix typo in comments, Laurent Vivier, 2021/09/16
- [PULL 10/10] target/sparc: Make sparc_cpu_dump_state() static, Laurent Vivier, 2021/09/16
- Re: [PULL 00/10] Trivial branch for 6.2 patches, Peter Maydell, 2021/09/16