projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cf0ce
)
mtd: nand: make nand_ooblayout_lp_hamming_ops static
author
Colin Ian King
<
[email protected]
>
Thu, 4 May 2017 12:11:00 +0000
(13:11 +0100)
committer
Boris Brezillon
<
[email protected]
>
Mon, 22 May 2017 07:42:29 +0000
(09:42 +0200)
nand_ooblayout_lp_hamming_ops can be made static as it does not need to be
in global scope.
Signed-off-by: Colin Ian King <
[email protected]
>
Acked-by: Boris Brezillon <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index 81f77f9cd784fef99a882fbe7cd8cb0036e083b8..b1dd12729f19b29ea8f35886aba02cc986990661 100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-202,7
+202,7
@@
static int nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section,
return 0;
}
-const struct mtd_ooblayout_ops nand_ooblayout_lp_hamming_ops = {
+
static
const struct mtd_ooblayout_ops nand_ooblayout_lp_hamming_ops = {
.ecc = nand_ooblayout_ecc_lp_hamming,
.free = nand_ooblayout_free_lp_hamming,
};