Skip to contentSkip to conversation

MTD: NAND: mxs_nand_init_dma: Make mxs_nand_init_dma static

PATCH In review Adam Ford 2 participants 2 messages Jan 12, 2019 – Feb 16, 2019

Subsystems (3)
lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 MTD: NAND: mxs_nand_init_dma: Make mxs_nand_init_dma static

mxs_nand_init_dma is only referenced from mxs_nand.c. It's not referenced in any headers or outside code, so this patch defines it as static.

drivers/mtd/nand/raw/mxs_nand.c +1 -1
index e3341812a2..82bd03868a 100644
@@ -1092,7 +1092,7 @@ int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info)
 /*
  * Initializes the NFC hardware.
  */
-int mxs_nand_init_dma(struct mxs_nand_info *info)
+static int mxs_nand_init_dma(struct mxs_nand_info *info)
 {
 	int i = 0, j, ret = 0;
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines

mxs_nand_init_dma is only referenced from mxs_nand.c. It's not referenced in any headers or outside code, so this patch defines it as static.

drivers/mtd/nand/raw/mxs_nand.c +0 -0
index e3341812a2..82bd03868a 100644

drivers/mtd/nand/raw/mxs_nand.c int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info) · line 1098

Quoted 8 lines
drivers/mtd/nand/raw/mxs_nand.c +1 -1
@@ -1092,7 +1092,7 @@ int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info)
 /*
  * Initializes the NFC hardware.
  */
-int mxs_nand_init_dma(struct mxs_nand_info *info)
+static int mxs_nand_init_dma(struct mxs_nand_info *info)
 {
 	int i = 0, j, ret = 0;
 

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================