Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpmsg_virtio: Do not make assumptions on struct member order
In rpmsg_virtio_ns_callback() we directly case from rpmsg_device* to rpmsg_virtio_device*. This only works if rdev is the first member. Use metal_container_of() to remove this assumption on struct order. Signed-off-by: Andrew Davis <afd@ti.com>
- Loading branch information