aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-03-01 04:44:57 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-03-08 21:34:05 -0500
commit1f6ca0d6213278f8608c7e342e423ec0c0198040 (patch)
tree62efbee587cab4b11dc17cc78bee18903ea08367 /drivers/mtd
parentada496578850cb063ccf64d43a293cfcc9d32bf8 (diff)
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/sm_common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/sm_common.h b/drivers/mtd/nand/sm_common.h
index 7c03314bdac5..18284f5fae64 100644
--- a/drivers/mtd/nand/sm_common.h
+++ b/drivers/mtd/nand/sm_common.h
@@ -39,17 +39,17 @@ struct sm_oob {
39extern int sm_register_device(struct mtd_info *mtd); 39extern int sm_register_device(struct mtd_info *mtd);
40 40
41 41
42inline int sm_sector_valid(struct sm_oob *oob) 42static inline int sm_sector_valid(struct sm_oob *oob)
43{ 43{
44 return hweight16(oob->data_status) >= 5; 44 return hweight16(oob->data_status) >= 5;
45} 45}
46 46
47inline int sm_block_valid(struct sm_oob *oob) 47static inline int sm_block_valid(struct sm_oob *oob)
48{ 48{
49 return hweight16(oob->block_status) >= 7; 49 return hweight16(oob->block_status) >= 7;
50} 50}
51 51
52inline int sm_block_erased(struct sm_oob *oob) 52static inline int sm_block_erased(struct sm_oob *oob)
53{ 53{
54 static const uint32_t erased_pattern[4] = { 54 static const uint32_t erased_pattern[4] = {
55 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; 55 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF };