OSDN Git Service

hw/i2c: Enable an id for the pca954x devices
authorPatrick Venture <venture@google.com>
Wed, 22 Mar 2023 17:21:36 +0000 (10:21 -0700)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Jun 2023 09:28:58 +0000 (11:28 +0200)
commit29770e09e4c877fa9cc6cedb93c5bcbf9ee10b50
treec0011d2a04336bdbe479d0ef575235080eac4ac5
parentf1cc7c28b611a5521e7e2e90d562e4b25af97d22
hw/i2c: Enable an id for the pca954x devices

This allows the devices to be more readily found and specified.
Without setting the name field, they can only be found by device type
name, which doesn't let you specify the second of the same device type
behind a bus.

Tested: Verified that by default the device was findable with the name
'pca954x[77]', for an instance attached at that address.

Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-Id: <20230322172136.48010-1-venture@google.com>
[PMD: Fix typo in property name]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/i2c/i2c_mux_pca954x.c