i2c: soft: Fix typo in CONFIG_SYS_I2C_SOFT_SPEED
PATCH 1/1 i2c: soft: Fix typo in CONFIG_SYS_I2C_SOFT_SPEED
In case only the CONFIG_SYS_I2C_SPEED is set in configuration file, the CONFIG_SYS_I2C_SOFT_SPEED is defined as CONFIG_SYS_I2C_SPEED. The CONFIG_SYS_I2C_SOFT_SPEED is then used throughout the driver.
Unfortunatelly, due to a typo in the driver, instead of defining CONFIG_SYS_I2C_SOFT_SPEED, an CONFIG_SYS_SOFT_I2C_SPEED was defined and therefore the driver failed to compile. The same applies for CONFIG_SYS_I2C_SOFT_SLAVE , where the swap happens as well.
This patch fixes the issue.
--- drivers/i2c/soft_i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/soft_i2c.c +4 -4
@@ -105,11 +105,11 @@ DECLARE_GLOBAL_DATA_PTR;# endif #endif -#if !defined(CONFIG_SYS_SOFT_I2C_SPEED ) -#define CONFIG_SYS_SOFT_I2C_SPEED CONFIG_SYS_I2C_SPEED +#if !defined(CONFIG_SYS_I2C_SOFT_SPEED ) +#define CONFIG_SYS_I2C_SOFT_SPEED CONFIG_SYS_I2C_SPEED#endif -#if !defined(CONFIG_SYS_SOFT_I2C_SLAVE ) -#define CONFIG_SYS_SOFT_I2C_SLAVE CONFIG_SYS_I2C_SLAVE +#if !defined(CONFIG_SYS_I2C_SOFT_SLAVE ) +#define CONFIG_SYS_I2C_SOFT_SLAVE CONFIG_SYS_I2C_SLAVE#endif /*-----------------------------------------------------------------------
Signature · 1 line
1.7.10.4
PATCH 1/1 i2c: soft: Fix typo in CONFIG_SYS_I2C_SOFT_SPEED
Hello Marek,
Am 31.07.2013 13:03, schrieb Marek Vasut:
Quoted 9 lines
In case only the
CONFIG_SYS_I2C_SPEEDis set in configuration file, theCONFIG_SYS_I2C_SOFT_SPEEDis defined asCONFIG_SYS_I2C_SPEED. TheCONFIG_SYS_I2C_SOFT_SPEEDis then used throughout the driver.Unfortunatelly, due to a typo in the driver, instead of defining
CONFIG_SYS_I2C_SOFT_SPEED, anCONFIG_SYS_SOFT_I2C_SPEEDwas defined and therefore the driver failed to compile. The same applies forCONFIG_SYS_I2C_SOFT_SLAVE, where the swap happens as well.
Quoted 7 lines
This patch fixes the issue.
Signed-off-by Marek Vasut<[email protected]>Cc Heiko Schocher<[email protected]>--- drivers/i2c/soft_i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Thanks for this fix. Hmm...
[hs at pollux u-boot]$ grep -lr CONFIG_SYS_SOFT_I2C_SPEED . ./include/configs/blackstamp.h ./drivers/i2c/soft_i2c.c
[hs at pollux u-boot]$
There is one more typo ... could you fix this too, as I want to have this in one commit?
Thanks!
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany