diff mbox series

[2/8] mtd: rawnand: qcom: Use u8 instead of uint8_t

Message ID 20230716144612.32132-3-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 the following checkpatch warning:
    "CHECK: Prefer kernel type 'u8' over 'uint8_t'"

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

Comments

Manivannan Sadhasivam July 17, 2023, 2:26 a.m. UTC | #1
On Sun, Jul 16, 2023 at 04:46:06PM +0200, Miquel Raynal wrote:
> Fix the following checkpatch warning:
>     "CHECK: Prefer kernel type 'u8' over 'uint8_t'"
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

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

- Mani

> ---
>  drivers/mtd/nand/raw/qcom_nandc.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
> index 023c8b36426b..0136df01738e 100644
> --- a/drivers/mtd/nand/raw/qcom_nandc.c
> +++ b/drivers/mtd/nand/raw/qcom_nandc.c
> @@ -212,7 +212,7 @@ nandc_set_reg(chip, reg,			\
>  /* Returns the dma address for reg read buffer */
>  #define reg_buf_dma_addr(chip, vaddr) \
>  	((chip)->reg_read_dma + \
> -	((uint8_t *)(vaddr) - (uint8_t *)(chip)->reg_read_buf))
> +	((u8 *)(vaddr) - (u8 *)(chip)->reg_read_buf))
>  
>  #define QPIC_PER_CW_CMD_ELEMENTS	32
>  #define QPIC_PER_CW_CMD_SGL		32
> @@ -1884,7 +1884,7 @@ static void qcom_nandc_codeword_fixup(struct qcom_nand_host *host, int page)
>  }
>  
>  /* implements ecc->read_page() */
> -static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
> +static int qcom_nandc_read_page(struct nand_chip *chip, u8 *buf,
>  				int oob_required, int page)
>  {
>  	struct qcom_nand_host *host = to_qcom_nand_host(chip);
> @@ -1912,7 +1912,7 @@ static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
>  }
>  
>  /* implements ecc->read_page_raw() */
> -static int qcom_nandc_read_page_raw(struct nand_chip *chip, uint8_t *buf,
> +static int qcom_nandc_read_page_raw(struct nand_chip *chip, u8 *buf,
>  				    int oob_required, int page)
>  {
>  	struct mtd_info *mtd = nand_to_mtd(chip);
> @@ -1958,7 +1958,7 @@ static int qcom_nandc_read_oob(struct nand_chip *chip, int page)
>  }
>  
>  /* implements ecc->write_page() */
> -static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
> +static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
>  				 int oob_required, int page)
>  {
>  	struct qcom_nand_host *host = to_qcom_nand_host(chip);
> @@ -2035,7 +2035,7 @@ static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
>  
>  /* implements ecc->write_page_raw() */
>  static int qcom_nandc_write_page_raw(struct nand_chip *chip,
> -				     const uint8_t *buf, int oob_required,
> +				     const u8 *buf, int oob_required,
>  				     int page)
>  {
>  	struct mtd_info *mtd = nand_to_mtd(chip);
> -- 
> 2.34.1
>
Tudor Ambarus July 28, 2023, 2:17 a.m. UTC | #2
On 7/16/23 15:46, Miquel Raynal wrote:
> Fix the following checkpatch warning:
>     "CHECK: Prefer kernel type 'u8' over 'uint8_t'"
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
> ---
>  drivers/mtd/nand/raw/qcom_nandc.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
> index 023c8b36426b..0136df01738e 100644
> --- a/drivers/mtd/nand/raw/qcom_nandc.c
> +++ b/drivers/mtd/nand/raw/qcom_nandc.c
> @@ -212,7 +212,7 @@ nandc_set_reg(chip, reg,			\
>  /* Returns the dma address for reg read buffer */
>  #define reg_buf_dma_addr(chip, vaddr) \
>  	((chip)->reg_read_dma + \
> -	((uint8_t *)(vaddr) - (uint8_t *)(chip)->reg_read_buf))
> +	((u8 *)(vaddr) - (u8 *)(chip)->reg_read_buf))
>  
>  #define QPIC_PER_CW_CMD_ELEMENTS	32
>  #define QPIC_PER_CW_CMD_SGL		32
> @@ -1884,7 +1884,7 @@ static void qcom_nandc_codeword_fixup(struct qcom_nand_host *host, int page)
>  }
>  
>  /* implements ecc->read_page() */
> -static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
> +static int qcom_nandc_read_page(struct nand_chip *chip, u8 *buf,
>  				int oob_required, int page)
>  {
>  	struct qcom_nand_host *host = to_qcom_nand_host(chip);
> @@ -1912,7 +1912,7 @@ static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
>  }
>  
>  /* implements ecc->read_page_raw() */
> -static int qcom_nandc_read_page_raw(struct nand_chip *chip, uint8_t *buf,
> +static int qcom_nandc_read_page_raw(struct nand_chip *chip, u8 *buf,
>  				    int oob_required, int page)
>  {
>  	struct mtd_info *mtd = nand_to_mtd(chip);
> @@ -1958,7 +1958,7 @@ static int qcom_nandc_read_oob(struct nand_chip *chip, int page)
>  }
>  
>  /* implements ecc->write_page() */
> -static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
> +static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
>  				 int oob_required, int page)
>  {
>  	struct qcom_nand_host *host = to_qcom_nand_host(chip);
> @@ -2035,7 +2035,7 @@ static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
>  
>  /* implements ecc->write_page_raw() */
>  static int qcom_nandc_write_page_raw(struct nand_chip *chip,
> -				     const uint8_t *buf, int oob_required,
> +				     const u8 *buf, int oob_required,
>  				     int page)
>  {
>  	struct mtd_info *mtd = nand_to_mtd(chip);
Miquel Raynal July 28, 2023, 12:35 p.m. UTC | #3
On Sun, 2023-07-16 at 14:46:06 UTC, Miquel Raynal wrote:
> Fix the following checkpatch warning:
>     "CHECK: Prefer kernel type 'u8' over 'uint8_t'"
> 
> 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 023c8b36426b..0136df01738e 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -212,7 +212,7 @@  nandc_set_reg(chip, reg,			\
 /* Returns the dma address for reg read buffer */
 #define reg_buf_dma_addr(chip, vaddr) \
 	((chip)->reg_read_dma + \
-	((uint8_t *)(vaddr) - (uint8_t *)(chip)->reg_read_buf))
+	((u8 *)(vaddr) - (u8 *)(chip)->reg_read_buf))
 
 #define QPIC_PER_CW_CMD_ELEMENTS	32
 #define QPIC_PER_CW_CMD_SGL		32
@@ -1884,7 +1884,7 @@  static void qcom_nandc_codeword_fixup(struct qcom_nand_host *host, int page)
 }
 
 /* implements ecc->read_page() */
-static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
+static int qcom_nandc_read_page(struct nand_chip *chip, u8 *buf,
 				int oob_required, int page)
 {
 	struct qcom_nand_host *host = to_qcom_nand_host(chip);
@@ -1912,7 +1912,7 @@  static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
 }
 
 /* implements ecc->read_page_raw() */
-static int qcom_nandc_read_page_raw(struct nand_chip *chip, uint8_t *buf,
+static int qcom_nandc_read_page_raw(struct nand_chip *chip, u8 *buf,
 				    int oob_required, int page)
 {
 	struct mtd_info *mtd = nand_to_mtd(chip);
@@ -1958,7 +1958,7 @@  static int qcom_nandc_read_oob(struct nand_chip *chip, int page)
 }
 
 /* implements ecc->write_page() */
-static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
+static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
 				 int oob_required, int page)
 {
 	struct qcom_nand_host *host = to_qcom_nand_host(chip);
@@ -2035,7 +2035,7 @@  static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
 
 /* implements ecc->write_page_raw() */
 static int qcom_nandc_write_page_raw(struct nand_chip *chip,
-				     const uint8_t *buf, int oob_required,
+				     const u8 *buf, int oob_required,
 				     int page)
 {
 	struct mtd_info *mtd = nand_to_mtd(chip);