diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-16 22:36:00 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-16 22:36:00 +0000 |
commit | 414727dee6e81bbee9e03ee9d2abd1092958e49c (patch) | |
tree | 6b8922ccb5e653467d8815b1fda287e18eaf9211 /am29f040b.c | |
parent | 41ce9537d30ed59ad73a59f028b8e8a233ae2c63 (diff) | |
download | flashrom-414727dee6e81bbee9e03ee9d2abd1092958e49c.zip flashrom-414727dee6e81bbee9e03ee9d2abd1092958e49c.tar.gz |
Eliminate all 'inline's from the flashrom code
They serve pretty much no purpose, compilers can optimize pretty much all of
what we might mark as inline anyway, _and_ inlines are not enforced in any
way by the compiler either. They're totally unneeded. Kill them.
Corresponding to flashrom svn r522.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'am29f040b.c')
-rw-r--r-- | am29f040b.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/am29f040b.c b/am29f040b.c index 1f08e77..7b11e25 100644 --- a/am29f040b.c +++ b/am29f040b.c @@ -20,8 +20,7 @@ #include "flash.h" -static __inline__ int erase_sector_29f040b(chipaddr bios, - unsigned long address) +static int erase_sector_29f040b(chipaddr bios, unsigned long address) { chip_writeb(0xAA, bios + 0x555); chip_writeb(0x55, bios + 0x2AA); @@ -38,10 +37,8 @@ static __inline__ int erase_sector_29f040b(chipaddr bios, return 0; } -static __inline__ int write_sector_29f040b(chipaddr bios, - uint8_t *src, - chipaddr dst, - unsigned int page_size) +static int write_sector_29f040b(chipaddr bios, uint8_t *src, chipaddr dst, + unsigned int page_size) { int i; |