aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rpmsg.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-10-07 21:23:12 -0700
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-10-31 15:41:46 -0700
commite950604782440c8635d289552bb5db58658fcbe9 (patch)
treeae586b92909250b6247cec27f3856e4297f98f04 /include/linux/rpmsg.h
parentrpmsg: smd: Reduce restrictions when finding channel (diff)
downloadlinux-dev-e950604782440c8635d289552bb5db58658fcbe9.tar.xz
linux-dev-e950604782440c8635d289552bb5db58658fcbe9.zip
rpmsg: Introduce a driver override mechanism
Similar to other subsystems it's useful to provide a mechanism to force a specific driver match on a device, so introduce this. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/rpmsg.h')
-rw-r--r--include/linux/rpmsg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rpmsg.h b/include/linux/rpmsg.h
index 452d393cc8dd..7ad6c205f110 100644
--- a/include/linux/rpmsg.h
+++ b/include/linux/rpmsg.h
@@ -64,6 +64,7 @@ struct rpmsg_channel_info {
* rpmsg_device - device that belong to the rpmsg bus
* @dev: the device struct
* @id: device id (used to match between rpmsg drivers and devices)
+ * @driver_override: driver name to force a match
* @src: local address
* @dst: destination address
* @ept: the rpmsg endpoint of this channel
@@ -72,6 +73,7 @@ struct rpmsg_channel_info {
struct rpmsg_device {
struct device dev;
struct rpmsg_device_id id;
+ char *driver_override;
u32 src;
u32 dst;
struct rpmsg_endpoint *ept;