]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
i2c: fsl_i2c: Remove inline declarations
authorMario Six <mario.six@gdsys.cc>
Mon, 15 Jan 2018 10:08:08 +0000 (11:08 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 6 Feb 2018 05:59:34 +0000 (06:59 +0100)
Some functions in the fsl_i2c driver are declared as inline, even though
they are quite large, which needlessly increases the size of the
resulting binary.

This patch removes the inline declarations.

Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
drivers/i2c/fsl_i2c.c

index d957cf6286ba3637bcfd2ae4985a88b2dfa5c260..a7f3ec472fb8b60786addfdc68b86a1eddc5376e 100644 (file)
@@ -303,7 +303,7 @@ static int i2c_wait4bus(const struct fsl_i2c_base *base)
        return 0;
 }
 
-static inline int i2c_wait(const struct fsl_i2c_base *base, int write)
+static int i2c_wait(const struct fsl_i2c_base *base, int write)
 {
        u32 csr;
        unsigned long long timeval = get_ticks();
@@ -340,8 +340,8 @@ static inline int i2c_wait(const struct fsl_i2c_base *base, int write)
        return -1;
 }
 
-static inline int i2c_write_addr(const struct fsl_i2c_base *base, u8 dev,
-                                u8 dir, int rsta)
+static int i2c_write_addr(const struct fsl_i2c_base *base, u8 dev,
+                         u8 dir, int rsta)
 {
        writeb(I2C_CR_MEN | I2C_CR_MSTA | I2C_CR_MTX
               | (rsta ? I2C_CR_RSTA : 0),
@@ -355,8 +355,8 @@ static inline int i2c_write_addr(const struct fsl_i2c_base *base, u8 dev,
        return 1;
 }
 
-static inline int __i2c_write_data(const struct fsl_i2c_base *base, u8 *data,
-                                  int length)
+static int __i2c_write_data(const struct fsl_i2c_base *base, u8 *data,
+                           int length)
 {
        int i;
 
@@ -370,8 +370,8 @@ static inline int __i2c_write_data(const struct fsl_i2c_base *base, u8 *data,
        return i;
 }
 
-static inline int __i2c_read_data(const struct fsl_i2c_base *base, u8 *data,
-                                 int length)
+static int __i2c_read_data(const struct fsl_i2c_base *base, u8 *data,
+                          int length)
 {
        int i;