rpmsg: virtio: Hide vrp pointer from the public API

Create a container struct virtio_rpmsg_channel around the rpmsg_channel
to keep virtio backend information separate from the rpmsg and public
API. This makes the public structures independant of virtio.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson 2016-09-01 15:28:06 -07:00
parent fade037e0f
commit 3bf950ff23
2 changed files with 35 additions and 11 deletions

View file

@ -95,7 +95,6 @@ enum rpmsg_ns_flags {
#define RPMSG_ADDR_ANY 0xFFFFFFFF
struct virtproc_info;
struct rpmsg_device;
struct rpmsg_endpoint;
struct rpmsg_device_ops;
@ -115,7 +114,6 @@ struct rpmsg_channel_info {
/**
* rpmsg_device - device that belong to the rpmsg bus
* @vrp: the remote processor this channel belongs to
* @dev: the device struct
* @id: device id (used to match between rpmsg drivers and devices)
* @src: local address
@ -124,7 +122,6 @@ struct rpmsg_channel_info {
* @announce: if set, rpmsg will announce the creation/removal of this channel
*/
struct rpmsg_device {
struct virtproc_info *vrp;
struct device dev;
struct rpmsg_device_id id;
u32 src;