path: root/ichspi.c
diff options
authorUwe Hermann <>2009-05-16 22:36:00 +0000
committerUwe Hermann <>2009-05-16 22:36:00 +0000
commit09e04f74c3c569427289fefd67157f2ae256d2cc (patch)
tree6b8922ccb5e653467d8815b1fda287e18eaf9211 /ichspi.c
parent2cac6860c3f451a661d8281d25a72dd5db89f4e4 (diff)
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 <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'ichspi.c')
1 files changed, 6 insertions, 6 deletions
diff --git a/ichspi.c b/ichspi.c
index f53b31f..4ddf2ad 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -127,14 +127,14 @@ typedef struct _OPCODES {
static OPCODES *curopcodes = NULL;
/* HW access functions */
-static inline uint32_t REGREAD32(int X)
+static uint32_t REGREAD32(int X)
volatile uint32_t regval;
regval = *(volatile uint32_t *)((uint8_t *) spibar + X);
return regval;
-static inline uint16_t REGREAD16(int X)
+static uint16_t REGREAD16(int X)
volatile uint16_t regval;
regval = *(volatile uint16_t *)((uint8_t *) spibar + X);
@@ -146,8 +146,8 @@ static inline uint16_t REGREAD16(int X)
#define REGWRITE8(X,Y) (*(uint8_t *)((uint8_t *)spibar+X)=Y)
/* Common SPI functions */
-static inline int find_opcode(OPCODES *op, uint8_t opcode);
-static inline int find_preop(OPCODES *op, uint8_t preop);
+static int find_opcode(OPCODES *op, uint8_t opcode);
+static int find_preop(OPCODES *op, uint8_t preop);
static int generate_opcodes(OPCODES * op);
static int program_opcodes(OPCODES * op);
static int run_opcode(OPCODE op, uint32_t offset,
@@ -192,7 +192,7 @@ OPCODES O_ST_M25P = {
-static inline int find_opcode(OPCODES *op, uint8_t opcode)
+static int find_opcode(OPCODES *op, uint8_t opcode)
int a;
@@ -204,7 +204,7 @@ static inline int find_opcode(OPCODES *op, uint8_t opcode)
return -1;
-static inline int find_preop(OPCODES *op, uint8_t preop)
+static int find_preop(OPCODES *op, uint8_t preop)
int a;
OpenPOWER on IntegriCloud