mtd: nand: make nand_ooblayout_lp_hamming_ops static
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jun 1 11:59:02 PDT 2017
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d4ed3b9015b5eebc90d629579d9e7944607cbae5
Commit: d4ed3b9015b5eebc90d629579d9e7944607cbae5
Parent: 60cf0ce14b09b54e7ee79dc3ef498de6ef0e41e9
Author: Colin Ian King <colin.king at canonical.com>
AuthorDate: Thu May 4 13:11:00 2017 +0100
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon May 22 09:42:29 2017 +0200
mtd: nand: make nand_ooblayout_lp_hamming_ops static
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 <colin.king at canonical.com>
Acked-by: Boris Brezillon <boris.brezillon at free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/nand_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 81f77f9..b1dd127 100644
--- 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,
};
More information about the linux-mtd-cvs
mailing list