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 647adf9fccccb34421c712aba47a528931dd97e1
Author: Alin Jerpelea <alin.jerpe...@sony.com>
AuthorDate: Tue Jan 26 10:15:29 2021 +0100

    include: nuttx: mtd: nxstyle fixes
    
    Nxstyle fixes to pass CI
    
    Signed-off-by: Alin Jerpelea <alin.jerpe...@sony.com>
---
 include/nuttx/mtd/configdata.h |  2 ++
 include/nuttx/mtd/hamming.h    |  9 +++++++--
 include/nuttx/mtd/nand.h       |  1 +
 include/nuttx/mtd/nand_model.h |  3 ++-
 include/nuttx/mtd/nand_raw.h   |  3 ++-
 include/nuttx/mtd/onfi.h       |  2 +-
 include/nuttx/mtd/smart.h      | 10 +++++-----
 7 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/include/nuttx/mtd/configdata.h b/include/nuttx/mtd/configdata.h
index 338a78f..ba4c7bd 100644
--- a/include/nuttx/mtd/configdata.h
+++ b/include/nuttx/mtd/configdata.h
@@ -55,7 +55,9 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
+
 /* IOCTL Commands ***********************************************************/
+
 /* IOCTL Commands to store and read configuration for user application.
  *
  * CFGDIOC_GETCONFIG - Get a specified Config Data item.
diff --git a/include/nuttx/mtd/hamming.h b/include/nuttx/mtd/hamming.h
index 9139a86..bb0e93e 100644
--- a/include/nuttx/mtd/hamming.h
+++ b/include/nuttx/mtd/hamming.h
@@ -57,6 +57,7 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
+
 /* These are the possible errors when trying to verify a block of data
  * encoded using a Hamming code:
  *
@@ -112,7 +113,9 @@ extern "C"
  *
  ****************************************************************************/
 
-void hamming_compute256x(FAR const uint8_t *data, size_t size, uint8_t *code);
+void hamming_compute256x(FAR const uint8_t *data,
+                         size_t size,
+                         uint8_t *code);
 
 /****************************************************************************
  * Name: hamming_verify256x
@@ -133,7 +136,9 @@ void hamming_compute256x(FAR const uint8_t *data, size_t 
size, uint8_t *code);
  *
  ****************************************************************************/
 
-int hamming_verify256x(FAR uint8_t *data, size_t size, FAR const uint8_t 
*code);
+int hamming_verify256x(FAR uint8_t *data,
+                       size_t size,
+                       FAR const uint8_t *code);
 
 #undef EXTERN
 #ifdef __cplusplus
diff --git a/include/nuttx/mtd/nand.h b/include/nuttx/mtd/nand.h
index d962920..37c5ad6 100644
--- a/include/nuttx/mtd/nand.h
+++ b/include/nuttx/mtd/nand.h
@@ -62,6 +62,7 @@
 /****************************************************************************
  * Public Types
  ****************************************************************************/
+
 /* This type represents the state of the upper-half NAND MTD device.  The
  * struct mtd_dev_s must appear at the beginning of the definition so that
  * you can freely cast between pointers to struct mtd_dev_s and struct
diff --git a/include/nuttx/mtd/nand_model.h b/include/nuttx/mtd/nand_model.h
index 3a40045..717ff7c 100644
--- a/include/nuttx/mtd/nand_model.h
+++ b/include/nuttx/mtd/nand_model.h
@@ -124,7 +124,8 @@ EXTERN const struct nand_model_s g_nandmodels[NAND_NMODELS];
  * Input Parameters:
  *   modeltab  List of nand_model_s instances.
  *   size      Number of models in list.
- *   chipid    Identifier returned by the 
Nand(id1|(id2<<8)|(id3<<16)|(id4<<24)).
+ *   chipid    Identifier returned by the
+ *             Nand(id1|(id2<<8)|(id3<<16)|(id4<<24)).
  *   model     nand_model_s instance to update with the model parameters.
  *
  * Returned Value:
diff --git a/include/nuttx/mtd/nand_raw.h b/include/nuttx/mtd/nand_raw.h
index 3ea2400..57b999c 100644
--- a/include/nuttx/mtd/nand_raw.h
+++ b/include/nuttx/mtd/nand_raw.h
@@ -58,6 +58,7 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
+
 /* Nand flash commands */
 
 #define COMMAND_READ_1                  0x00
@@ -269,7 +270,7 @@ struct nand_raw_s
 #endif
 
 #if defined(CONFIG_MTD_NAND_SWECC) || defined(CONFIG_MTD_NAND_HWECC)
-  /* ECC working buffers*/
+  /* ECC working buffers */
 
   uint8_t spare[CONFIG_MTD_NAND_MAXPAGESPARESIZE];
   uint8_t ecc[CONFIG_MTD_NAND_MAXSPAREECCBYTES];
diff --git a/include/nuttx/mtd/onfi.h b/include/nuttx/mtd/onfi.h
index 6fd6a31..4632927 100644
--- a/include/nuttx/mtd/onfi.h
+++ b/include/nuttx/mtd/onfi.h
@@ -64,7 +64,7 @@
  * Public Types
  ****************************************************************************/
 
-/* Describes memory organization block information in ONFI parameter page*/
+/* Describes memory organization block information in ONFI parameter page */
 
 struct onfi_pgparam_s
 {
diff --git a/include/nuttx/mtd/smart.h b/include/nuttx/mtd/smart.h
index ac8d11d..53edc1a 100644
--- a/include/nuttx/mtd/smart.h
+++ b/include/nuttx/mtd/smart.h
@@ -63,8 +63,8 @@
 struct smart_alloc_s
 {
   size_t                size;             /* Size of the allocation */
-  void*                 ptr;              /* Pointer to the data */
-  const char*           name;             /* Name of the allocation */
+  void                 *ptr;              /* Pointer to the data */
+  const char           *name;             /* Name of the allocation */
 };
 #endif
 
@@ -87,12 +87,12 @@ struct mtd_smart_procfs_data_s
   uint32_t            blockerases;      /* Number block erase operations */
 
 #ifdef CONFIG_MTD_SMART_SECTOR_ERASE_DEBUG
-  FAR const uint8_t*  erasecounts;      /* Array of erase counts per erase 
block */
+  FAR const uint8_t  *erasecounts;      /* Array of erase counts per erase 
block */
   size_t              neraseblocks;     /* Number of erase blocks */
 #endif
 #ifdef CONFIG_MTD_SMART_ALLOC_DEBUG
   FAR const struct smart_alloc_s  *allocs; /* Array of allocations */
-  uint16_t            alloccount;       /* Number of items in the array */
+  uint16_t            alloccount;          /* Number of items in the array */
 #endif
 #ifdef CONFIG_MTD_SMART_WEAR_LEVEL
   uint32_t            uneven_wearcount; /* Number of uneven block erases */
@@ -100,7 +100,7 @@ struct mtd_smart_procfs_data_s
 };
 
 /* The following defines debug command data passed from the procfs layer to
-   the SMART MTD layer for debug purposes.
+ *  the SMART MTD layer for debug purposes.
  */
 
 struct mtd_smart_debug_data_s

Reply via email to