diff mbox series

[4/8] mtd: rawnand: qcom: Fix the spacing

Message ID 20230716144612.32132-5-miquel.raynal@bootlin.com (mailing list archive)
State New, archived
Headers show
Series mtd: rawnand: qcom: Misc fixes | expand

Commit Message

Miquel Raynal July 16, 2023, 2:46 p.m. UTC
Fix following checkpatch warning:
	"CHECK: Please don't use multiple blank lines"
	"CHECK: Please use a blank line after
		function/struct/union/enum declarations"

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/nand/raw/qcom_nandc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Manivannan Sadhasivam July 17, 2023, 2:28 a.m. UTC | #1
On Sun, Jul 16, 2023 at 04:46:08PM +0200, Miquel Raynal wrote:
> Fix following checkpatch warning:
> 	"CHECK: Please don't use multiple blank lines"
> 	"CHECK: Please use a blank line after
> 		function/struct/union/enum declarations"
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Acked-by: Manivannan Sadhasivam <mani@kernel.org>

- Mani

> ---
>  drivers/mtd/nand/raw/qcom_nandc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
> index 54a7b49bda87..554cca3801da 100644
> --- a/drivers/mtd/nand/raw/qcom_nandc.c
> +++ b/drivers/mtd/nand/raw/qcom_nandc.c
> @@ -1997,7 +1997,6 @@ static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
>  			oob_size = ecc->bytes;
>  		}
>  
> -
>  		write_data_dma(nandc, FLASH_BUF_ACC, data_buf, data_size,
>  			       i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0);
>  
> @@ -2373,6 +2372,7 @@ qcom_nandc_calc_ecc_bytes(int step_size, int strength)
>  {
>  	return strength == 4 ? 12 : 16;
>  }
> +
>  NAND_ECC_CAPS_SINGLE(qcom_nandc_ecc_caps, qcom_nandc_calc_ecc_bytes,
>  		     NANDC_STEP_SIZE, 4, 8);
>  
> -- 
> 2.34.1
>
Tudor Ambarus July 28, 2023, 2:18 a.m. UTC | #2
On 7/16/23 15:46, Miquel Raynal wrote:
> Fix following checkpatch warning:
> 	"CHECK: Please don't use multiple blank lines"
> 	"CHECK: Please use a blank line after
> 		function/struct/union/enum declarations"
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
> ---
>  drivers/mtd/nand/raw/qcom_nandc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
> index 54a7b49bda87..554cca3801da 100644
> --- a/drivers/mtd/nand/raw/qcom_nandc.c
> +++ b/drivers/mtd/nand/raw/qcom_nandc.c
> @@ -1997,7 +1997,6 @@ static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
>  			oob_size = ecc->bytes;
>  		}
>  
> -
>  		write_data_dma(nandc, FLASH_BUF_ACC, data_buf, data_size,
>  			       i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0);
>  
> @@ -2373,6 +2372,7 @@ qcom_nandc_calc_ecc_bytes(int step_size, int strength)
>  {
>  	return strength == 4 ? 12 : 16;
>  }
> +
>  NAND_ECC_CAPS_SINGLE(qcom_nandc_ecc_caps, qcom_nandc_calc_ecc_bytes,
>  		     NANDC_STEP_SIZE, 4, 8);
>
Miquel Raynal July 28, 2023, 12:34 p.m. UTC | #3
On Sun, 2023-07-16 at 14:46:08 UTC, Miquel Raynal wrote:
> Fix following checkpatch warning:
> 	"CHECK: Please don't use multiple blank lines"
> 	"CHECK: Please use a blank line after
> 		function/struct/union/enum declarations"
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> Acked-by: Manivannan Sadhasivam <mani@kernel.org>
> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel
diff mbox series

Patch

diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
index 54a7b49bda87..554cca3801da 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -1997,7 +1997,6 @@  static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
 			oob_size = ecc->bytes;
 		}
 
-
 		write_data_dma(nandc, FLASH_BUF_ACC, data_buf, data_size,
 			       i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0);
 
@@ -2373,6 +2372,7 @@  qcom_nandc_calc_ecc_bytes(int step_size, int strength)
 {
 	return strength == 4 ? 12 : 16;
 }
+
 NAND_ECC_CAPS_SINGLE(qcom_nandc_ecc_caps, qcom_nandc_calc_ecc_bytes,
 		     NANDC_STEP_SIZE, 4, 8);