Skip to content

Commit

Permalink
rpmsg-echo-test: change ambiguous api name
Browse files Browse the repository at this point in the history
rpmsg_create_ept name is used in open-amp library.
Change this API name to app_rpmsg_create_ept to avoid confusion

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
  • Loading branch information
tnmysh authored and arnopo committed Nov 15, 2022
1 parent 8094c77 commit 7984199
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/linux/rpmsg-echo-test/echo_test.c
Expand Up @@ -64,7 +64,7 @@ void send_shutdown(int fd)
perror("write SHUTDOWN_MSG\n");
}

int rpmsg_create_ept(int rpfd, struct rpmsg_endpoint_info *eptinfo)
int app_rpmsg_create_ept(int rpfd, struct rpmsg_endpoint_info *eptinfo)
{
int ret;

Expand Down Expand Up @@ -311,11 +311,11 @@ int main(int argc, char *argv[])
return charfd;

/* Create endpoint from rpmsg char driver */
PR_DBG("rpmsg_create_ept: %s[src=%#x,dst=%#x]\n",
PR_DBG("app_rpmsg_create_ept: %s[src=%#x,dst=%#x]\n",
eptinfo.name, eptinfo.src, eptinfo.dst);
ret = rpmsg_create_ept(charfd, &eptinfo);
ret = app_rpmsg_create_ept(charfd, &eptinfo);
if (ret) {
fprintf(stderr, "rpmsg_create_ept %s\n", strerror(errno));
fprintf(stderr, "app_rpmsg_create_ept %s\n", strerror(errno));
return -EINVAL;
}
if (!get_rpmsg_ept_dev_name(rpmsg_char_name, eptinfo.name,
Expand Down

0 comments on commit 7984199

Please sign in to comment.