include: nuttx: mtd: nxstyle fixes

Nxstyle fixes to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2021-01-26 10:15:29 +01:00 committed by Xiang Xiao
parent 8c5044fa4a
commit 647adf9fcc
7 changed files with 20 additions and 10 deletions

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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];

View file

@ -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
{

View file

@ -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