[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210830083356.31702-1-gongruiqi1@huawei.com>
Date: Mon, 30 Aug 2021 16:33:56 +0800
From: "GONG, Ruiqi" <gongruiqi1@...wei.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>
CC: <linux-mtd@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
Yi Yang <yiyang13@...wei.com>,
Wang Weiyang <wangweiyang2@...wei.com>,
Xiu Jianfeng <xiujianfeng@...wei.com>
Subject: [PATCH] mtd: Remove obsolete macros only used by the old nand_ecclayout struct
All uses of MTD_MAX_{OOBFREE,ECCPOS}_ENTRIES_LARGE have been removed as
commit ef5eeea6e911 ("mtd: nand: brcm: switch to mtd_ooblayout_ops") and
commit aab616e31d1c ("mtd: kill the nand_ecclayout struct") replaced
struct nand_ecclayout by the new mtd_ooblayout_ops interface. Remove
these two macros therefore.
Reported-by: Yi Yang <yiyang13@...wei.com>
Signed-off-by: GONG, Ruiqi <gongruiqi1@...wei.com>
---
include/linux/mtd/mtd.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 88227044fc86..f5e7dfc2e4e9 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -72,8 +72,6 @@ struct mtd_oob_ops {
uint8_t *oobbuf;
};
-#define MTD_MAX_OOBFREE_ENTRIES_LARGE 32
-#define MTD_MAX_ECCPOS_ENTRIES_LARGE 640
/**
* struct mtd_oob_region - oob region definition
* @offset: region offset
--
2.17.1
Powered by blists - more mailing lists