Skip to content

Commit

Permalink
hw/qdev: Correct qdev_init_gpio_out_named() documentation
Browse files Browse the repository at this point in the history
qdev_init_gpio_out_named() is described as qdev_init_gpio_out(),
and referring to itself in an endless loop, which is confusing. Fix.

Reported-by: Yanan Wang <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Yanan Wang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
philmd committed Dec 31, 2021
1 parent 694804e commit 14b0375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/hw/qdev-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n);
void qdev_init_gpio_out(DeviceState *dev, qemu_irq *pins, int n);

/**
* qdev_init_gpio_out: create an array of named output GPIO lines
* qdev_init_gpio_out_named: create an array of named output GPIO lines
* @dev: Device to create output GPIOs for
* @pins: Pointer to qemu_irq or qemu_irq array for the GPIO lines
* @name: Name to give this array of GPIO lines
Expand Down

0 comments on commit 14b0375

Please sign in to comment.