mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
rpmsg: Move endpoint related interface to rpmsg core
Move the rpmsg_send() and rpmsg_destroy_ept() interface to the rpmsg core, so that we eventually can hide the rpmsg_endpoint ops from the public API. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
@@ -299,19 +299,6 @@ __rpmsg_destroy_ept(struct virtproc_info *vrp, struct rpmsg_endpoint *ept)
|
||||
kref_put(&ept->refcount, __ept_release);
|
||||
}
|
||||
|
||||
/**
|
||||
* rpmsg_destroy_ept() - destroy an existing rpmsg endpoint
|
||||
* @ept: endpoing to destroy
|
||||
*
|
||||
* Should be used by drivers to destroy an rpmsg endpoint previously
|
||||
* created with rpmsg_create_ept().
|
||||
*/
|
||||
void rpmsg_destroy_ept(struct rpmsg_endpoint *ept)
|
||||
{
|
||||
ept->ops->destroy_ept(ept);
|
||||
}
|
||||
EXPORT_SYMBOL(rpmsg_destroy_ept);
|
||||
|
||||
static void virtio_rpmsg_destroy_ept(struct rpmsg_endpoint *ept)
|
||||
{
|
||||
__rpmsg_destroy_ept(ept->rpdev->vrp, ept);
|
||||
|
||||
Reference in New Issue
Block a user