commit | b3ff3afca5057127972f6c02086f768f7142ff30 | [log] [tgz] |
---|---|---|
author | John Sheu <sheu@google.com> | Fri Aug 16 17:57:52 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri Aug 16 17:57:52 2019 +0000 |
tree | b21f8d1c3f79bf38d1480e6dc5ba93d45f1589f7 | |
parent | 846ab4e67b022e0fea6f0f133cd7a34e2335b6ff [diff] |
[brcmfmac] Fix ownership in the bus interface This commit moves the state held in the brcmf_device struct into a Device class, which proper C++ lifetime semantics. Most of the state formerly held in brcmf_device (which is not much) is moved into brcmf_pub. This allows us to fix the brcmf_bus_ops interface to take a brcmf_bus instance as its context, rather than a brcmf_device. This change also performs some cleanup of static state: * The async dispatcher is now a member of Device, rather than a static instance, and its lifetime is properly tied to its Device. * The irq_callback_lock is now a brcmf_pub member, and instantiated per-device. Change-Id: I70362e57aa5f5aa269cc1dff919fc99c1333c468
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.