diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-02-22 23:20:17 -0500 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-08-27 02:08:25 -0400 |
commit | 9ff166def8c1f5759555c2c94ddd0fef11a18c2b (patch) | |
tree | 33d290ac676a349b43ce337311700ffcefca7d6b /drivers/rpmsg | |
parent | 9a703eb72059530941ad32e2f99eccb70071f3f4 (diff) |
rpmsg: core: fix comments
Minor typos, grammar and copy/paste issues. Fix for consistency. No
functional or semantic change.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r-- | drivers/rpmsg/rpmsg_core.c | 8 | ||||
-rw-r--r-- | drivers/rpmsg/rpmsg_internal.h | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c index ea88fd4e2a6e..e330ec4dfc33 100644 --- a/drivers/rpmsg/rpmsg_core.c +++ b/drivers/rpmsg/rpmsg_core.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * equals to the src address of their rpmsg channel), the driver's handler | 46 | * equals to the src address of their rpmsg channel), the driver's handler |
47 | * is invoked to process it. | 47 | * is invoked to process it. |
48 | * | 48 | * |
49 | * That said, more complicated drivers might do need to allocate | 49 | * That said, more complicated drivers might need to allocate |
50 | * additional rpmsg addresses, and bind them to different rx callbacks. | 50 | * additional rpmsg addresses, and bind them to different rx callbacks. |
51 | * To accomplish that, those drivers need to call this function. | 51 | * To accomplish that, those drivers need to call this function. |
52 | * | 52 | * |
@@ -177,7 +177,7 @@ int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, | |||
177 | EXPORT_SYMBOL(rpmsg_send_offchannel); | 177 | EXPORT_SYMBOL(rpmsg_send_offchannel); |
178 | 178 | ||
179 | /** | 179 | /** |
180 | * rpmsg_send() - send a message across to the remote processor | 180 | * rpmsg_trysend() - send a message across to the remote processor |
181 | * @ept: the rpmsg endpoint | 181 | * @ept: the rpmsg endpoint |
182 | * @data: payload of message | 182 | * @data: payload of message |
183 | * @len: length of payload | 183 | * @len: length of payload |
@@ -205,7 +205,7 @@ int rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len) | |||
205 | EXPORT_SYMBOL(rpmsg_trysend); | 205 | EXPORT_SYMBOL(rpmsg_trysend); |
206 | 206 | ||
207 | /** | 207 | /** |
208 | * rpmsg_sendto() - send a message across to the remote processor, specify dst | 208 | * rpmsg_trysendto() - send a message across to the remote processor, specify dst |
209 | * @ept: the rpmsg endpoint | 209 | * @ept: the rpmsg endpoint |
210 | * @data: payload of message | 210 | * @data: payload of message |
211 | * @len: length of payload | 211 | * @len: length of payload |
@@ -253,7 +253,7 @@ __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp, | |||
253 | EXPORT_SYMBOL(rpmsg_poll); | 253 | EXPORT_SYMBOL(rpmsg_poll); |
254 | 254 | ||
255 | /** | 255 | /** |
256 | * rpmsg_send_offchannel() - send a message using explicit src/dst addresses | 256 | * rpmsg_trysend_offchannel() - send a message using explicit src/dst addresses |
257 | * @ept: the rpmsg endpoint | 257 | * @ept: the rpmsg endpoint |
258 | * @src: source address | 258 | * @src: source address |
259 | * @dst: destination address | 259 | * @dst: destination address |
diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h index 0d791c30b7ea..3fc83cd50e98 100644 --- a/drivers/rpmsg/rpmsg_internal.h +++ b/drivers/rpmsg/rpmsg_internal.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * struct rpmsg_device_ops - indirection table for the rpmsg_device operations | 22 | * struct rpmsg_device_ops - indirection table for the rpmsg_device operations |
23 | * @create_ept: create backend-specific endpoint, requried | 23 | * @create_ept: create backend-specific endpoint, required |
24 | * @announce_create: announce presence of new channel, optional | 24 | * @announce_create: announce presence of new channel, optional |
25 | * @announce_destroy: announce destruction of channel, optional | 25 | * @announce_destroy: announce destruction of channel, optional |
26 | * | 26 | * |
@@ -39,13 +39,14 @@ struct rpmsg_device_ops { | |||
39 | 39 | ||
40 | /** | 40 | /** |
41 | * struct rpmsg_endpoint_ops - indirection table for rpmsg_endpoint operations | 41 | * struct rpmsg_endpoint_ops - indirection table for rpmsg_endpoint operations |
42 | * @destroy_ept: destroy the given endpoint, required | 42 | * @destroy_ept: see @rpmsg_destroy_ept(), required |
43 | * @send: see @rpmsg_send(), required | 43 | * @send: see @rpmsg_send(), required |
44 | * @sendto: see @rpmsg_sendto(), optional | 44 | * @sendto: see @rpmsg_sendto(), optional |
45 | * @send_offchannel: see @rpmsg_send_offchannel(), optional | 45 | * @send_offchannel: see @rpmsg_send_offchannel(), optional |
46 | * @trysend: see @rpmsg_trysend(), required | 46 | * @trysend: see @rpmsg_trysend(), required |
47 | * @trysendto: see @rpmsg_trysendto(), optional | 47 | * @trysendto: see @rpmsg_trysendto(), optional |
48 | * @trysend_offchannel: see @rpmsg_trysend_offchannel(), optional | 48 | * @trysend_offchannel: see @rpmsg_trysend_offchannel(), optional |
49 | * @poll: see @rpmsg_poll(), optional | ||
49 | * | 50 | * |
50 | * Indirection table for the operations that a rpmsg backend should implement. | 51 | * Indirection table for the operations that a rpmsg backend should implement. |
51 | * In addition to @destroy_ept, the backend must at least implement @send and | 52 | * In addition to @destroy_ept, the backend must at least implement @send and |