Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195909
b: refs/heads/master
c: 1f6ca0d
h: refs/heads/master
i:
  195907: f461287
v: v3
  • Loading branch information
Stephen Rothwell authored and David Woodhouse committed Mar 9, 2010
1 parent 2124ae2 commit 89d85f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ada496578850cb063ccf64d43a293cfcc9d32bf8
refs/heads/master: 1f6ca0d6213278f8608c7e342e423ec0c0198040
6 changes: 3 additions & 3 deletions trunk/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 89d85f8

Please sign in to comment.