]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i2c: move search to i2c_scan_bus method
authorPatrick Venture <venture@google.com>
Mon, 12 Apr 2021 19:45:21 +0000 (12:45 -0700)
committerCorey Minyard <cminyard@mvista.com>
Thu, 15 Apr 2021 12:10:30 +0000 (07:10 -0500)
commit3f9b32595e785c79720ed174198472c3d4d32c03
treee37aadf2f77131ec20a77655d62a7de73af594d9
parent513ca82d8982463aca98aa01dcf584e0b4fc0982
hw/i2c: move search to i2c_scan_bus method

Moves the search for matching devices on an i2c bus into a separate
method.  This allows for an object that owns an I2CBus can avoid
duplicating this method.

Tested: A BMC firmware was booted to userspace and i2c devices were
detected.

Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Message-Id: <20210412194522.664594-4-venture@google.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
hw/i2c/core.c
include/hw/i2c/i2c.h