diff options
| author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-01 18:27:57 -0400 |
|---|---|---|
| committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-09 01:15:20 -0400 |
| commit | 92e1de51bf2cb8d49adc8925abe56ce84911a232 (patch) | |
| tree | 24a48c667cb9fbcc6af5943c5ef3a3ed5e7bcd32 /samples | |
| parent | 2b263d2408663a36c14a0aa1f765b2c84b92ea18 (diff) | |
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 { | |||
| 28 | int rx_count; | 28 | int rx_count; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | static void rpmsg_sample_cb(struct rpmsg_channel *rpdev, void *data, int len, | 31 | static void rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len, |
| 32 | void *priv, u32 src) | 32 | void *priv, u32 src) |
| 33 | { | 33 | { |
| 34 | int ret; | 34 | int ret; |
| @@ -52,7 +52,7 @@ static void rpmsg_sample_cb(struct rpmsg_channel *rpdev, void *data, int len, | |||
| 52 | dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); | 52 | dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | static int rpmsg_sample_probe(struct rpmsg_channel *rpdev) | 55 | static int rpmsg_sample_probe(struct rpmsg_device *rpdev) |
| 56 | { | 56 | { |
| 57 | int ret; | 57 | int ret; |
| 58 | struct instance_data *idata; | 58 | struct instance_data *idata; |
| @@ -76,7 +76,7 @@ static int rpmsg_sample_probe(struct rpmsg_channel *rpdev) | |||
| 76 | return 0; | 76 | return 0; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | static void rpmsg_sample_remove(struct rpmsg_channel *rpdev) | 79 | static void rpmsg_sample_remove(struct rpmsg_device *rpdev) |
| 80 | { | 80 | { |
| 81 | dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); | 81 | dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); |
| 82 | } | 82 | } |
