drivers/rptun: minor fix about rptun
1. follow the nxstyle, change formot of rptun_init(); 2. remove used wqueue header file; Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
57e901e5ea
commit
99b6c77c79
|
@ -39,7 +39,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>
|
||||
|
@ -82,9 +81,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);
|
||||
|
@ -416,9 +416,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;
|
||||
|
|
Loading…
Reference in New Issue