Skip to content

Commit

Permalink
mtd: nand: r852: declare inline functions static
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Stephen Rothwell authored and David Woodhouse committed Mar 9, 2010
1 parent ada4965 commit 1f6ca0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mtd/nand/sm_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 1f6ca0d

Please sign in to comment.