diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-03-01 10:44:57 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-09 03:34:05 +0100 |
commit | 1f6ca0d6213278f8608c7e342e423ec0c0198040 (patch) | |
tree | 62efbee587cab4b11dc17cc78bee18903ea08367 /drivers/mtd/nand/sm_common.h | |
parent | mtd: nand: r852: fix name space clash (diff) | |
download | linux-1f6ca0d6213278f8608c7e342e423ec0c0198040.tar.xz linux-1f6ca0d6213278f8608c7e342e423ec0c0198040.zip |
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/nand/sm_common.h')
-rw-r--r-- | drivers/mtd/nand/sm_common.h | 6 |
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 { 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 }; |