diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 4 | ||||
| -rw-r--r-- | include/i2c.h | 5 | 
2 files changed, 3 insertions, 6 deletions
| diff --git a/include/common.h b/include/common.h index aeb2d8436..d244bd40b 100644 --- a/include/common.h +++ b/include/common.h @@ -120,8 +120,8 @@ typedef volatile unsigned char	vu_char;  #define debug(fmt,args...)	printf (fmt ,##args)  #define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args);  #else -static inline void debug(const char *fmt, ...) {} -static inline void debugX(int level, const char *fmt, ...) {} +#define debug(fmt,args...) +#define debugX(level,fmt,args...)  #endif	/* DEBUG */  #ifdef DEBUG diff --git a/include/i2c.h b/include/i2c.h index 323150ded..8ceb4c852 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -55,10 +55,7 @@  #else  #define CONFIG_SYS_MAX_I2C_BUS		1  #define I2C_GET_BUS()		0 -static inline int I2C_SET_BUS(unsigned int bus) -{ -	return 0; -} +#define I2C_SET_BUS(a)  #endif  /* define the I2C bus number for RTC and DTT if not already done */ |