Staging: mt29f_spinand: Fix "blank line" checkpatch issues
Subsystems (2)
cover Staging: mt29f_spinand: Fix "blank line" checkpatch issues
This patchset fixes multiple checkpatch "CHECK" warnings concerning blank line/s.
Eva Rachel Retuya (3):
Staging: mt29f_spinand: Add blank line after function declaration
Staging: mt29f_spinand: Remove blank line before '}' and after '{'
braces
Staging: mt29f_spinand: Remove multiple blank lines
drivers/staging/mt29f_spinand/mt29f_spinand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/3 Staging: mt29f_spinand: Add blank line after function declaration
Add missing blank line in-between function declarations. Issue found by checkpatch.
CHECK: Please use a blank line after function/struct/union/enum declarations
--- drivers/staging/mt29f_spinand/mt29f_spinand.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/staging/mt29f_spinand/mt29f_spinand.c +2 -0
@@ -186,6 +186,7 @@ static int wait_till_ready(struct spi_device *spi_nand)return -1 ; } +/** * spinand_get_otp- send command 0xf to read the SPI Nand OTP register * Description:
@@ -839,6 +840,7 @@ static int spinand_lock_block(struct spi_device *spi_nand, u8 lock)return ret; } +/* * spinand_probe - [spinand Interface] * @spi_nand: registered device driver.
Signature · 1 line
1.9.1
PATCH 2/3 Staging: mt29f_spinand: Remove blank line before '}' and after '{' braces
In reply to Eva Rachel RetuyaRemove unneeded blank lines preceding/following '}' and '{' braces, as pointed out by checkpatch.
This patch addresses the following checkpatch checks:
CHECK: Blank lines aren't necessary before a close brace '}'
CHECK: Blank lines aren't necessary after an open brace '{'
--- drivers/staging/mt29f_spinand/mt29f_spinand.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/mt29f_spinand/mt29f_spinand.c +0 -2
@@ -660,7 +660,6 @@ static int spinand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, } }return 0 ; - }#endif
@@ -711,7 +710,6 @@ static int spinand_wait(struct mtd_info *mtd, struct nand_chip *chip)static void spinand_write_buf (struct mtd_info *mtd,const uint8_t *buf,int len) { -struct spinand_state *state =mtd_to_state (mtd);memcpy (state->buf + state->buf_ptr, buf, len);
Signature · 1 line
1.9.1
PATCH 3/3 Staging: mt29f_spinand: Remove multiple blank lines
In reply to Eva Rachel RetuyaRemove excess blank line in-between two function declarations. Issue found by checkpatch.
CHECK: Please don't use multiple blank lines
--- drivers/staging/mt29f_spinand/mt29f_spinand.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/mt29f_spinand/mt29f_spinand.c +0 -1
@@ -677,7 +677,6 @@ static uint8_t spinand_read_byte(struct mtd_info *mtd)return data; } -static int spinand_wait (struct mtd_info *mtd,struct nand_chip *chip) {struct spinand_info *info = (struct spinand_info *)chip->priv;
Signature · 1 line
1.9.1