mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
drivers/rpmsg: Fix typo rpmsg_device_destory -> rpmsg_device_destroy
Rename rpmsg_device_destory() to rpmsg_device_destroy() to fix a spelling error in the function name. The function is declared in the private header drivers/rpmsg/rpmsg.h and used only within the drivers/rpmsg/ subsystem (rpmsg.c, rpmsg_virtio.c, rpmsg_router_edge.c, rpmsg_port.c), so there is no public API or ABI impact. Signed-off-by: hanzj <hanzjian@zepp.com>
This commit is contained in:
parent
54ef006069
commit
283742e29c
5 changed files with 5 additions and 5 deletions
|
|
@ -445,7 +445,7 @@ void rpmsg_device_created(FAR struct rpmsg_s *rpmsg)
|
|||
#endif
|
||||
}
|
||||
|
||||
void rpmsg_device_destory(FAR struct rpmsg_s *rpmsg)
|
||||
void rpmsg_device_destroy(FAR struct rpmsg_s *rpmsg)
|
||||
{
|
||||
FAR struct rpmsg_device *rdev = rpmsg_get_rdev_by_rpmsg(rpmsg);
|
||||
FAR struct metal_list *node;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ void rpmsg_ns_unbind(FAR struct rpmsg_device *rdev,
|
|||
FAR const char *name, uint32_t dest);
|
||||
|
||||
void rpmsg_device_created(FAR struct rpmsg_s *rpmsg);
|
||||
void rpmsg_device_destory(FAR struct rpmsg_s *rpmsg);
|
||||
void rpmsg_device_destroy(FAR struct rpmsg_s *rpmsg);
|
||||
|
||||
int rpmsg_register(FAR const char *path, FAR struct rpmsg_s *rpmsg,
|
||||
FAR const struct rpmsg_ops_s *ops);
|
||||
|
|
|
|||
|
|
@ -824,7 +824,7 @@ void rpmsg_port_unregister(FAR struct rpmsg_port_s *port)
|
|||
|
||||
snprintf(name, sizeof(name), "/dev/rpmsg/%s", port->rpmsg.cpuname);
|
||||
|
||||
rpmsg_device_destory(&port->rpmsg);
|
||||
rpmsg_device_destroy(&port->rpmsg);
|
||||
rpmsg_unregister(name, &port->rpmsg);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -525,7 +525,7 @@ static void rpmsg_router_edge_destroy(FAR struct rpmsg_router_edge_s *edge)
|
|||
rpmsg_router_edge_match,
|
||||
rpmsg_router_edge_bind);
|
||||
rpmsg_unregister(edge->name, &edge->rpmsg);
|
||||
rpmsg_device_destory(&edge->rpmsg);
|
||||
rpmsg_device_destroy(&edge->rpmsg);
|
||||
kmm_free(edge);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -791,7 +791,7 @@ void rpmsg_virtio_remove(FAR struct virtio_device *vdev)
|
|||
|
||||
/* Destroy all the rpmsg services */
|
||||
|
||||
rpmsg_device_destory(&priv->rpmsg);
|
||||
rpmsg_device_destroy(&priv->rpmsg);
|
||||
|
||||
/* Reset the rpmsg virtio device for driver */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue