diff mbox

[U-Boot,v3,03/12] i2c: cm5200: Drop use of CONFIG_I2C_HARD

Message ID 20170513031000.5429-4-sjg@chromium.org
State Awaiting Upstream
Delegated to: Heiko Schocher
Headers show

Commit Message

Simon Glass May 13, 2017, 3:09 a.m. UTC
Drop use of this long-deprecated option.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3: None
Changes in v2: None

 board/cm5200/cm5200.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Heiko Schocher May 15, 2017, 4:23 a.m. UTC | #1
Hello Simon,

Am 13.05.2017 um 05:09 schrieb Simon Glass:
> Drop use of this long-deprecated option.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>   board/cm5200/cm5200.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)

Thanks!

Applied to u-boot-i2c.git master

u-boot-i2c master just testing on travis:
https://travis-ci.org/hsdenx/u-boot-i2c/builds/232288665

bye,
Heiko
>
> diff --git a/board/cm5200/cm5200.c b/board/cm5200/cm5200.c
> index 2f55191caf..0c647bbd3d 100644
> --- a/board/cm5200/cm5200.c
> +++ b/board/cm5200/cm5200.c
> @@ -214,7 +214,7 @@ static void compose_module_name(hw_id_t hw_id, char *buf)
>   	strcat(buf, tmp);
>   }
>
> -#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
> +#if defined(CONFIG_SYS_I2C_SOFT)
>   /*
>    * Compose string with hostname.
>    * buf is assumed to have enough space, and be null-terminated.
> @@ -295,7 +295,7 @@ int board_early_init_r(void)
>   #ifdef CONFIG_MISC_INIT_R
>   int misc_init_r(void)
>   {
> -#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
> +#if defined(CONFIG_SYS_I2C_SOFT)
>   	uchar buf[6];
>   	char str[18];
>   	char hostname[MODULE_NAME_MAXLEN];
> @@ -323,7 +323,7 @@ int misc_init_r(void)
>   	compose_hostname(hw_id, hostname);
>   	setenv("hostname", hostname);
>
> -#endif /* defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT) */
> +#endif /* defined(CONFIG_SYS_I2C_SOFT) */
>   	if (!getenv("ethaddr"))
>   		printf(LOG_PREFIX "MAC address not set, networking is not "
>   					"operational\n");
>
diff mbox

Patch

diff --git a/board/cm5200/cm5200.c b/board/cm5200/cm5200.c
index 2f55191caf..0c647bbd3d 100644
--- a/board/cm5200/cm5200.c
+++ b/board/cm5200/cm5200.c
@@ -214,7 +214,7 @@  static void compose_module_name(hw_id_t hw_id, char *buf)
 	strcat(buf, tmp);
 }
 
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
+#if defined(CONFIG_SYS_I2C_SOFT)
 /*
  * Compose string with hostname.
  * buf is assumed to have enough space, and be null-terminated.
@@ -295,7 +295,7 @@  int board_early_init_r(void)
 #ifdef CONFIG_MISC_INIT_R
 int misc_init_r(void)
 {
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
+#if defined(CONFIG_SYS_I2C_SOFT)
 	uchar buf[6];
 	char str[18];
 	char hostname[MODULE_NAME_MAXLEN];
@@ -323,7 +323,7 @@  int misc_init_r(void)
 	compose_hostname(hw_id, hostname);
 	setenv("hostname", hostname);
 
-#endif /* defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT) */
+#endif /* defined(CONFIG_SYS_I2C_SOFT) */
 	if (!getenv("ethaddr"))
 		printf(LOG_PREFIX "MAC address not set, networking is not "
 					"operational\n");