nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx] 02/02: fix nxstyle warning
Date Mon, 27 Apr 2020 01:53:51 GMT
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 927cb00f5e9581eba3e45851b41a76173ec1f5cb
Author: zhongan <zhongan@xiaomi.com>
AuthorDate: Mon Apr 27 09:10:58 2020 +0800

    fix nxstyle warning
    
    Signed-off-by: zhongan <zhongan@xiaomi.com>
---
 drivers/rptun/rptun.c       | 9 ++++++---
 include/nuttx/rptun/rptun.h | 3 ++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c
index ea1c21a..c568077 100644
--- a/drivers/rptun/rptun.c
+++ b/drivers/rptun/rptun.c
@@ -551,7 +551,8 @@ static int rptun_dev_stop(FAR struct remoteproc *rproc)
   return 0;
 }
 
-static int rptun_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
+static int rptun_dev_ioctl(FAR struct file *filep, int cmd,
+                           unsigned long arg)
 {
   FAR struct inode *inode = filep->f_inode;
   FAR struct rptun_priv_s *priv = inode->i_private;
@@ -577,7 +578,8 @@ static int rptun_dev_ioctl(FAR struct file *filep, int cmd, unsigned long
arg)
   return ret;
 }
 
-static int rptun_store_open(FAR void *store_, FAR const char *path,
+static int rptun_store_open(FAR void *store_,
+                            FAR const char *path,
                             FAR const void **img_data)
 {
   FAR struct rptun_store_s *store = store_;
@@ -777,7 +779,8 @@ void rpmsg_unregister_callback(FAR void *priv_,
                 {
                   struct rptun_priv_s *priv;
 
-                  priv = metal_container_of(pnode, struct rptun_priv_s, node);
+                  priv = metal_container_of(pnode,
+                                            struct rptun_priv_s, node);
                   device_destroy(&priv->vdev.rdev, priv_);
                 }
             }
diff --git a/include/nuttx/rptun/rptun.h b/include/nuttx/rptun/rptun.h
index 6eb2774..31be2d4 100644
--- a/include/nuttx/rptun/rptun.h
+++ b/include/nuttx/rptun/rptun.h
@@ -269,7 +269,8 @@ struct rptun_ops_s
   CODE FAR const char *(*get_cpuname)(FAR struct rptun_dev_s *dev);
   CODE FAR const char *(*get_firmware)(FAR struct rptun_dev_s *dev);
 
-  CODE FAR const struct rptun_addrenv_s *(*get_addrenv)(FAR struct rptun_dev_s *dev);
+  CODE FAR const struct rptun_addrenv_s *(*get_addrenv)(
+                        FAR struct rptun_dev_s *dev);
   CODE FAR struct rptun_rsc_s *(*get_resource)(FAR struct rptun_dev_s *dev);
 
   CODE bool (*is_autostart)(FAR struct rptun_dev_s *dev);


Mime
View raw message