From: Manivannan Sadhasivam <mani@kernel.org>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Md Sadre Alam <quic_mdalam@quicinc.com>,
Sricharan Ramabadhran <quic_srichara@quicinc.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Tudor Ambarus <tudor.ambarus@linaro.org>,
Pratyush Yadav <pratyush@kernel.org>,
Michael Walle <michael@walle.cc>,
linux-mtd@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/8] mtd: rawnand: qcom: Use u8 instead of uint8_t
Date: Mon, 17 Jul 2023 07:56:54 +0530 [thread overview]
Message-ID: <20230717022654.GB5996@thinkpad> (raw)
In-Reply-To: <20230716144612.32132-3-miquel.raynal@bootlin.com>
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
>
--
மணிவண்ணன் சதாசிவம்
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-07-17 2:26 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-16 14:46 [PATCH 0/8] mtd: rawnand: qcom: Misc fixes Miquel Raynal
2023-07-16 14:46 ` [PATCH 1/8] mtd: rawnand: qcom: Use the BIT() macro Miquel Raynal
2023-07-17 2:25 ` Manivannan Sadhasivam
2023-07-28 2:16 ` Tudor Ambarus
2023-07-28 12:35 ` Miquel Raynal
2023-07-16 14:46 ` [PATCH 2/8] mtd: rawnand: qcom: Use u8 instead of uint8_t Miquel Raynal
2023-07-17 2:26 ` Manivannan Sadhasivam [this message]
2023-07-28 2:17 ` Tudor Ambarus
2023-07-28 12:35 ` Miquel Raynal
2023-07-16 14:46 ` [PATCH 3/8] mtd: rawnand: qcom: Fix alignment with open parenthesis Miquel Raynal
2023-07-17 2:27 ` Manivannan Sadhasivam
2023-07-28 2:17 ` Tudor Ambarus
2023-07-16 14:46 ` [PATCH 4/8] mtd: rawnand: qcom: Fix the spacing Miquel Raynal
2023-07-17 2:28 ` Manivannan Sadhasivam
2023-07-28 2:18 ` Tudor Ambarus
2023-07-28 12:34 ` Miquel Raynal
2023-07-16 14:46 ` [PATCH 5/8] mtd: rawnand: qcom: Fix wrong indentation Miquel Raynal
2023-07-17 2:29 ` Manivannan Sadhasivam
2023-07-28 2:20 ` Tudor Ambarus
2023-07-28 12:34 ` Miquel Raynal
2023-07-16 14:46 ` [PATCH 6/8] mtd: rawnand: qcom: Fix a typo Miquel Raynal
2023-07-17 2:30 ` Manivannan Sadhasivam
2023-07-28 2:22 ` Tudor Ambarus
2023-07-28 12:34 ` Miquel Raynal
2023-07-16 14:46 ` [PATCH 7/8] mtd: rawnand: qcom: Early structure initialization Miquel Raynal
2023-07-17 2:31 ` Manivannan Sadhasivam
2023-07-27 15:03 ` Tudor Ambarus
2023-07-27 15:14 ` Miquel Raynal
2023-07-28 2:23 ` Tudor Ambarus
2023-07-28 12:34 ` Miquel Raynal
2023-07-16 14:46 ` [PATCH 8/8] mtd: rawnand: qcom: Fix address parsing within ->exec_op() Miquel Raynal
2023-07-17 6:38 ` Manivannan Sadhasivam
2023-07-27 14:59 ` Miquel Raynal
2023-07-28 2:31 ` Tudor Ambarus
2023-07-28 7:56 ` Miquel Raynal
2023-07-28 2:33 ` Sricharan Ramabadhran
2023-07-28 4:14 ` Sricharan Ramabadhran
2023-07-28 7:55 ` Miquel Raynal
2023-07-28 2:27 ` Tudor Ambarus
2023-07-28 12:34 ` Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230717022654.GB5996@thinkpad \
--to=mani@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=michael@walle.cc \
--cc=miquel.raynal@bootlin.com \
--cc=pratyush@kernel.org \
--cc=quic_mdalam@quicinc.com \
--cc=quic_srichara@quicinc.com \
--cc=richard@nod.at \
--cc=tudor.ambarus@linaro.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).