Skip to content

Commit

Permalink
drivers/rptun: minor fix about rptun
Browse files Browse the repository at this point in the history
1. follow the nxstyle, change formot of rptun_init();
2. remove used wqueue header file;

Signed-off-by: Bowen Wang <[email protected]>
  • Loading branch information
CV-Bowen committed Oct 11, 2024
1 parent 976c417 commit 252ccfb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/rptun/rptun.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <nuttx/power/pm.h>
#include <nuttx/rptun/rptun.h>
#include <nuttx/semaphore.h>
#include <nuttx/wqueue.h>
#include <metal/utilities.h>
#include <openamp/remoteproc_loader.h>
#include <openamp/remoteproc_virtio.h>
Expand Down Expand Up @@ -85,9 +84,10 @@ struct rptun_store_s
* Private Function Prototypes
****************************************************************************/

static FAR struct remoteproc *rptun_init(FAR struct remoteproc *rproc,
FAR const struct remoteproc_ops *ops,
FAR void *arg);
static FAR struct remoteproc *
rptun_init(FAR struct remoteproc *rproc,
FAR const struct remoteproc_ops *ops,
FAR void *arg);
static void rptun_remove(FAR struct remoteproc *rproc);
static int rptun_config(struct remoteproc *rproc, void *data);
static int rptun_start(FAR struct remoteproc *rproc);
Expand Down Expand Up @@ -419,9 +419,10 @@ static int rptun_callback(FAR void *arg, uint32_t vqid)
return OK;
}

static FAR struct remoteproc *rptun_init(FAR struct remoteproc *rproc,
FAR const struct remoteproc_ops *ops,
FAR void *arg)
static FAR struct remoteproc *
rptun_init(FAR struct remoteproc *rproc,
FAR const struct remoteproc_ops *ops,
FAR void *arg)
{
rproc->ops = ops;
rproc->priv = arg;
Expand Down

0 comments on commit 252ccfb

Please sign in to comment.