You need to sign in or sign up before continuing.
提交 1f6ca0d6 编写于 作者: S Stephen Rothwell 提交者: David Woodhouse

mtd: nand: r852: declare inline functions static

Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 ada49657
...@@ -39,17 +39,17 @@ struct sm_oob { ...@@ -39,17 +39,17 @@ struct sm_oob {
extern int sm_register_device(struct mtd_info *mtd); extern int sm_register_device(struct mtd_info *mtd);
inline int sm_sector_valid(struct sm_oob *oob) static inline int sm_sector_valid(struct sm_oob *oob)
{ {
return hweight16(oob->data_status) >= 5; return hweight16(oob->data_status) >= 5;
} }
inline int sm_block_valid(struct sm_oob *oob) static inline int sm_block_valid(struct sm_oob *oob)
{ {
return hweight16(oob->block_status) >= 7; return hweight16(oob->block_status) >= 7;
} }
inline int sm_block_erased(struct sm_oob *oob) static inline int sm_block_erased(struct sm_oob *oob)
{ {
static const uint32_t erased_pattern[4] = { static const uint32_t erased_pattern[4] = {
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册