Skip to content

Commit 428771b

Browse files
committed
mtd: rawnand: qcom: Use u8 instead of uint8_t
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> Link: https://lore.kernel.org/linux-mtd/20230716144612.32132-3-miquel.raynal@bootlin.com
1 parent a6de666 commit 428771b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/mtd/nand/raw/qcom_nandc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ nandc_set_reg(chip, reg, \
212212
/* Returns the dma address for reg read buffer */
213213
#define reg_buf_dma_addr(chip, vaddr) \
214214
((chip)->reg_read_dma + \
215-
((uint8_t *)(vaddr) - (uint8_t *)(chip)->reg_read_buf))
215+
((u8 *)(vaddr) - (u8 *)(chip)->reg_read_buf))
216216

217217
#define QPIC_PER_CW_CMD_ELEMENTS 32
218218
#define QPIC_PER_CW_CMD_SGL 32
@@ -1884,7 +1884,7 @@ static void qcom_nandc_codeword_fixup(struct qcom_nand_host *host, int page)
18841884
}
18851885

18861886
/* implements ecc->read_page() */
1887-
static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
1887+
static int qcom_nandc_read_page(struct nand_chip *chip, u8 *buf,
18881888
int oob_required, int page)
18891889
{
18901890
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,
19121912
}
19131913

19141914
/* implements ecc->read_page_raw() */
1915-
static int qcom_nandc_read_page_raw(struct nand_chip *chip, uint8_t *buf,
1915+
static int qcom_nandc_read_page_raw(struct nand_chip *chip, u8 *buf,
19161916
int oob_required, int page)
19171917
{
19181918
struct mtd_info *mtd = nand_to_mtd(chip);
@@ -1958,7 +1958,7 @@ static int qcom_nandc_read_oob(struct nand_chip *chip, int page)
19581958
}
19591959

19601960
/* implements ecc->write_page() */
1961-
static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
1961+
static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
19621962
int oob_required, int page)
19631963
{
19641964
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,
20352035

20362036
/* implements ecc->write_page_raw() */
20372037
static int qcom_nandc_write_page_raw(struct nand_chip *chip,
2038-
const uint8_t *buf, int oob_required,
2038+
const u8 *buf, int oob_required,
20392039
int page)
20402040
{
20412041
struct mtd_info *mtd = nand_to_mtd(chip);

0 commit comments

Comments
 (0)