mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
mtd: nand: r852: declare inline functions static
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
ada4965788
commit
1f6ca0d621
@ -39,17 +39,17 @@ struct sm_oob {
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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] = {
|
||||
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF };
|
||||
|
Loading…
Reference in New Issue
Block a user