From 90f002a90f5ac9087737fbc9e781f3519e011f28 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Thu, 1 Aug 2013 12:32:20 +0200 Subject: 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. Signed-off-by: Marek Vasut Cc: Heiko Schocher --- include/configs/blackstamp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/configs') diff --git a/include/configs/blackstamp.h b/include/configs/blackstamp.h index 7d8227503a..5b3aac7954 100644 --- a/include/configs/blackstamp.h +++ b/include/configs/blackstamp.h @@ -206,8 +206,8 @@ #ifdef CONFIG_SYS_I2C_SOFT #define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF9 #define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF8 -#define CONFIG_SYS_SOFT_I2C_SPEED 50000 -#define CONFIG_SYS_SOFT_I2C_SLAVE 0xFE +#define CONFIG_SYS_I2C_SOFT_SPEED 50000 +#define CONFIG_SYS_I2C_SOFT_SLAVE 0xFE #endif /* -- cgit