commit | 4fd2c880658c31837f8e1484c69361a4062beda6 | [log] [tgz] |
---|---|---|
author | Braden Kell <bradenkell@google.com> | Fri Feb 10 22:28:57 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 10 22:28:57 2023 +0000 |
tree | ee762baf72cc9d6d82a4f2d46bf8d69dc80a6162 | |
parent | 6c4775935853d7773575bfefc530ee93742e73ad [diff] |
[i2c][core] Simplify I2C core driver bus/child relationship Make the I2C root device create buses which create children, rather than having the root device create both. Also remove persistent references to buses from the root device, which makes it easier to reason about object lifetimes and ownership. Also: - Remove some includes that aren't needed - Make the unit tests better represent an actual use case This change is a prerequisite for removing the transfer queue thread. Bug: 104064 Multiply: //src/devices/i2c/drivers/i2c: 500 Test: I2C devices work on Nelson Change-Id: I0efc8aee959e0fd9d897cc92a9d7d0495a5d7263 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/797830 Commit-Queue: Braden Kell <bradenkell@google.com> Reviewed-by: Christopher Anderson <cja@google.com> Reviewed-by: Gurjant Kalsi <gkalsi@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.