OSDN Git Service

hw/i2c: name I2CNode list in I2CBus
authorPatrick Venture <venture@google.com>
Mon, 12 Apr 2021 19:45:19 +0000 (12:45 -0700)
committerCorey Minyard <cminyard@mvista.com>
Thu, 15 Apr 2021 12:09:19 +0000 (07:09 -0500)
commitb98ec6896ee88f1dcdd7098af25bcb6ee0fc50f0
tree9c39c2cec1c40dff90f5924e5115e17d17e99d43
parent8fe9f1f891eff4e37f82622b7480ee748bf4af74
hw/i2c: name I2CNode list in I2CBus

To enable passing the current_devs field as a parameter, we need to use
a named struct type.

Tested: BMC firmware with i2c devices booted to userspace.

Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210412194522.664594-2-venture@google.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
include/hw/i2c/i2c.h