summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-05-04 13:11:00 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-05-22 09:42:29 +0200
commitd4ed3b9015b5eebc90d629579d9e7944607cbae5 (patch)
treee86e692f26d4879ff2210c54722e2b7780210249
parent60cf0ce14b09b54e7ee79dc3ef498de6ef0e41e9 (diff)
downloadlinux-d4ed3b9015b5eebc90d629579d9e7944607cbae5.tar.gz
linux-d4ed3b9015b5eebc90d629579d9e7944607cbae5.tar.bz2
linux-d4ed3b9015b5eebc90d629579d9e7944607cbae5.zip
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@canonical.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 81f77f9cd784..b1dd12729f19 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,
};