diff options
author | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-16 22:36:00 +0000 |
---|---|---|
committer | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-16 22:36:00 +0000 |
commit | 5753f3f9082b895f0ac19e8e2f52cec4dcdbfd7f (patch) | |
tree | 6b8922ccb5e653467d8815b1fda287e18eaf9211 /sst49lfxxxc.c | |
parent | db778f43d384da0fc3e31c8b214a8109e1be3c05 (diff) | |
download | flashrom-5753f3f9082b895f0ac19e8e2f52cec4dcdbfd7f.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.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'sst49lfxxxc.c')
-rw-r--r-- | sst49lfxxxc.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c index 896564f..d9dcd9b 100644 --- a/sst49lfxxxc.c +++ b/sst49lfxxxc.c @@ -38,8 +38,8 @@ #define STATUS_ESS (1 << 6) #define STATUS_WSMS (1 << 7) -static __inline__ int write_lockbits_49lfxxxc(chipaddr bios, int size, - unsigned char bits) +static int write_lockbits_49lfxxxc(chipaddr bios, int size, + unsigned char bits) { int i, left = size; unsigned long address; @@ -65,8 +65,7 @@ static __inline__ int write_lockbits_49lfxxxc(chipaddr bios, int size, return 0; } -static __inline__ int erase_sector_49lfxxxc(chipaddr bios, - unsigned long address) +static int erase_sector_49lfxxxc(chipaddr bios, unsigned long address) { unsigned char status; @@ -85,10 +84,8 @@ static __inline__ int erase_sector_49lfxxxc(chipaddr bios, return 0; } -static __inline__ int write_sector_49lfxxxc(chipaddr bios, - uint8_t *src, - chipaddr dst, - unsigned int page_size) +static int write_sector_49lfxxxc(chipaddr bios, uint8_t *src, chipaddr dst, + unsigned int page_size) { int i; unsigned char status; |