drivers: mtd: mtd_nandscheme: mix case identifier fix

nxstyle fix for mix case identifier.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2021-01-27 12:43:40 +01:00 committed by Xiang Xiao
parent 6f5793eefc
commit 822fbe5c10
2 changed files with 7 additions and 7 deletions

View File

@ -344,7 +344,7 @@ void nandscheme_writeextra(FAR const struct nand_scheme_s *scheme,
* *
* Input Parameters: * Input Parameters:
* scheme Pointer to a nand_scheme_s instance. * scheme Pointer to a nand_scheme_s instance.
* spareSize Size of spare area. * sparesize Size of spare area.
* offset Index where to write the first extra byte. * offset Index where to write the first extra byte.
* size Number of extra bytes to write. * size Number of extra bytes to write.
* offset Index where to write the first extra byte. * offset Index where to write the first extra byte.
@ -355,12 +355,12 @@ void nandscheme_writeextra(FAR const struct nand_scheme_s *scheme,
****************************************************************************/ ****************************************************************************/
int nandscheme_build4086(FAR struct nand_scheme_s *scheme, int nandscheme_build4086(FAR struct nand_scheme_s *scheme,
unsigned int spareSize, unsigned int eccOffset) unsigned int sparesize, unsigned int eccoffset)
{ {
uint8_t eccsize = g_nand_sparescheme4096.eccsize; uint8_t eccsize = g_nand_sparescheme4096.eccsize;
int i; int i;
if ((eccOffset + eccsize) > spareSize) if ((eccoffset + eccsize) > sparesize)
{ {
return -E2BIG; return -E2BIG;
} }
@ -370,10 +370,10 @@ int nandscheme_build4086(FAR struct nand_scheme_s *scheme,
for (i = 0; i < eccsize; i++) for (i = 0; i < eccsize; i++)
{ {
scheme->eccbytepos[i] = eccOffset + i; scheme->eccbytepos[i] = eccoffset + i;
} }
scheme->nxbytes = spareSize - eccsize - 2; scheme->nxbytes = sparesize - eccsize - 2;
for (i = 0; i < scheme->nxbytes; i++) for (i = 0; i < scheme->nxbytes; i++)
{ {

View File

@ -300,7 +300,7 @@ void nandscheme_writeextra(FAR const struct nand_scheme_s *scheme,
* *
* Input Parameters: * Input Parameters:
* scheme Pointer to a nand_scheme_s instance. * scheme Pointer to a nand_scheme_s instance.
* spareSize Size of spare area. * sparesize Size of spare area.
* offset Index where to write the first extra byte. * offset Index where to write the first extra byte.
* size Number of extra bytes to write. * size Number of extra bytes to write.
* offset Index where to write the first extra byte. * offset Index where to write the first extra byte.
@ -311,7 +311,7 @@ void nandscheme_writeextra(FAR const struct nand_scheme_s *scheme,
****************************************************************************/ ****************************************************************************/
int nandscheme_build4086(FAR struct nand_scheme_s *scheme, int nandscheme_build4086(FAR struct nand_scheme_s *scheme,
unsigned int spareSize, unsigned int eccOffset); unsigned int sparesize, unsigned int eccoffset);
#undef EXTERN #undef EXTERN
#ifdef __cplusplus #ifdef __cplusplus