Skip to content

Commit

Permalink
rpmsg: remove rpmsg_init_ept
Browse files Browse the repository at this point in the history
since it is deprecated for while

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 authored and edmooring committed May 4, 2022
1 parent 10dccec commit 3ff669b
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lib/include/openamp/rpmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,35 +436,6 @@ static inline int rpmsg_send_nocopy(struct rpmsg_endpoint *ept,
ept->dest_addr, data, len);
}

/**
* rpmsg_init_ept - initialize rpmsg endpoint
*
* Initialize an RPMsg endpoint with a name, source address,
* remoteproc address, endpoint callback, and destroy endpoint callback.
*
* API deprecated since release v2020.10
*
* @ept: pointer to rpmsg endpoint
* @name: service name associated to the endpoint
* @src: local address of the endpoint
* @dest: target address of the endpoint
* @cb: endpoint callback
* @ns_unbind_cb: end point service unbind callback, called when remote ept is
* destroyed.
*/
__deprecated static inline void rpmsg_init_ept(struct rpmsg_endpoint *ept,
const char *name,
uint32_t src, uint32_t dest,
rpmsg_ept_cb cb,
rpmsg_ns_unbind_cb ns_unbind_cb)
{
strncpy(ept->name, name ? name : "", sizeof(ept->name));
ept->addr = src;
ept->dest_addr = dest;
ept->cb = cb;
ept->ns_unbind_cb = ns_unbind_cb;
}

/**
* rpmsg_create_ept - create rpmsg endpoint and register it to rpmsg device
*
Expand Down

0 comments on commit 3ff669b

Please sign in to comment.