You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/09/18 14:03:19 UTC
[incubator-nuttx] 02/02: Fix coding style issues
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f92e9641cdcc76264af2bb48375241f3b2844d9b
Author: Augusto Fraga Giachero <au...@gmail.com>
AuthorDate: Fri Sep 18 09:43:17 2020 -0300
Fix coding style issues
Fix long lines pointed by nxstyle.
---
drivers/rf/dat-31r5-sp.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/rf/dat-31r5-sp.c b/drivers/rf/dat-31r5-sp.c
index fe84b20..29a0e53 100644
--- a/drivers/rf/dat-31r5-sp.c
+++ b/drivers/rf/dat-31r5-sp.c
@@ -189,7 +189,8 @@ static int dat31r5sp_close(FAR struct file *filep)
* Write is not permited, only IOCTLs.
****************************************************************************/
-static ssize_t dat31r5sp_write(FAR struct file *filep, FAR const char *buffer,
+static ssize_t dat31r5sp_write(FAR struct file *filep,
+ FAR const char *buffer,
size_t buflen)
{
return -ENOSYS;
@@ -218,7 +219,9 @@ static ssize_t dat31r5sp_read(FAR struct file *filep, FAR char *buffer,
* single attenuator.
****************************************************************************/
-static int dat31r5sp_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
+static int dat31r5sp_ioctl(FAR struct file *filep,
+ int cmd,
+ unsigned long arg)
{
FAR struct inode *inode = filep->f_inode;
FAR struct dat31r5sp_dev_s *priv = inode->i_private;
@@ -269,7 +272,8 @@ int dat31r5sp_register(FAR const char *devpath,
/* Initialize the DAT-31R5-SP+ device structure */
- priv = (FAR struct dat31r5sp_dev_s *)kmm_malloc(sizeof(struct dat31r5sp_dev_s));
+ priv = (FAR struct dat31r5sp_dev_s *)
+ kmm_malloc(sizeof(struct dat31r5sp_dev_s));
if (priv == NULL)
{
snerr("ERROR: Failed to allocate instance\n");