summaryrefslogtreecommitdiffstats
path: root/sst28sf040.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-05-16 22:36:00 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-05-16 22:36:00 +0000
commit09e04f74c3c569427289fefd67157f2ae256d2cc (patch)
tree6b8922ccb5e653467d8815b1fda287e18eaf9211 /sst28sf040.c
parent2cac6860c3f451a661d8281d25a72dd5db89f4e4 (diff)
downloadflashrom-09e04f74c3c569427289fefd67157f2ae256d2cc.tar.gz
flashrom-09e04f74c3c569427289fefd67157f2ae256d2cc.tar.bz2
flashrom-09e04f74c3c569427289fefd67157f2ae256d2cc.zip
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 'sst28sf040.c')
-rw-r--r--sst28sf040.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sst28sf040.c b/sst28sf040.c
index 806497ae4..c858f54dd 100644
--- a/sst28sf040.c
+++ b/sst28sf040.c
@@ -28,7 +28,7 @@
#define RESET 0xFF
#define READ_ID 0x90
-static __inline__ void protect_28sf040(chipaddr bios)
+static void protect_28sf040(chipaddr bios)
{
uint8_t tmp;
@@ -41,7 +41,7 @@ static __inline__ void protect_28sf040(chipaddr bios)
tmp = chip_readb(bios + 0x040A);
}
-static __inline__ void unprotect_28sf040(chipaddr bios)
+static void unprotect_28sf040(chipaddr bios)
{
uint8_t tmp;
@@ -54,8 +54,7 @@ static __inline__ void unprotect_28sf040(chipaddr bios)
tmp = chip_readb(bios + 0x041A);
}
-static __inline__ int erase_sector_28sf040(chipaddr bios,
- unsigned long address)
+static int erase_sector_28sf040(chipaddr bios, unsigned long address)
{
chip_writeb(AUTO_PG_ERASE1, bios);
chip_writeb(AUTO_PG_ERASE2, bios + address);
@@ -66,10 +65,8 @@ static __inline__ int erase_sector_28sf040(chipaddr bios,
return 0;
}
-static __inline__ int write_sector_28sf040(chipaddr bios,
- uint8_t *src,
- chipaddr dst,
- unsigned int page_size)
+static int write_sector_28sf040(chipaddr bios, uint8_t *src, chipaddr dst,
+ unsigned int page_size)
{
int i;