diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-02 00:27:57 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-09 07:15:20 +0200 |
commit | 92e1de51bf2cb8d49adc8925abe56ce84911a232 (patch) | |
tree | 24a48c667cb9fbcc6af5943c5ef3a3ed5e7bcd32 /samples | |
parent | rpmsg: Make rpmsg_create_ept() take channel_info struct (diff) | |
download | linux-92e1de51bf2cb8d49adc8925abe56ce84911a232.tar.xz linux-92e1de51bf2cb8d49adc8925abe56ce84911a232.zip |
rpmsg: Clean up rpmsg device vs channel naming
The rpmsg device representing struct is called rpmsg_channel and the
variable name used throughout is rpdev, with the communication happening
on endpoints it's clearer to just call this a "device" in a public API.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/rpmsg/rpmsg_client_sample.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/rpmsg/rpmsg_client_sample.c b/samples/rpmsg/rpmsg_client_sample.c index 37975eddd64e..4fcd7ee13fb9 100644 --- a/samples/rpmsg/rpmsg_client_sample.c +++ b/samples/rpmsg/rpmsg_client_sample.c @@ -28,7 +28,7 @@ struct instance_data { int rx_count; }; -static void rpmsg_sample_cb(struct rpmsg_channel *rpdev, void *data, int len, +static void rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len, void *priv, u32 src) { int ret; @@ -52,7 +52,7 @@ static void rpmsg_sample_cb(struct rpmsg_channel *rpdev, void *data, int len, dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); } -static int rpmsg_sample_probe(struct rpmsg_channel *rpdev) +static int rpmsg_sample_probe(struct rpmsg_device *rpdev) { int ret; struct instance_data *idata; @@ -76,7 +76,7 @@ static int rpmsg_sample_probe(struct rpmsg_channel *rpdev) return 0; } -static void rpmsg_sample_remove(struct rpmsg_channel *rpdev) +static void rpmsg_sample_remove(struct rpmsg_device *rpdev) { dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); } |