qdev: gpio: Don't allow name share between I and O
commitb235a71f52f60d42dd69c4ac2e41fa5a5861cf85
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Fri, 26 Sep 2014 05:17:08 +0000 (25 22:17 -0700)
committerAndreas Färber <afaerber@suse.de>
Mon, 13 Oct 2014 14:39:26 +0000 (13 16:39 +0200)
tree0ee0f6bb7693014ffc20118a2f90fde661b13cd6
parentb1d28ec6a7dbdaadda39d29322f0de694aeb0b74
qdev: gpio: Don't allow name share between I and O

Only allow a GPIO name to be one or the other. Inputs and outputs are
functionally different and should be in different namespaces. Prepares
support for the QOMification of IRQs as Links or Child objects.

The alternative is to munge names .e.g. with "-in" or "-out" suffixes
when giving QOM names. But that reduces clarity and if there are cases
out there where users want I and O with same name they can manually add
their own suffixes.

Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/core/qdev.c