diff mbox series

global_data: remove unused mxc_i2c specific field

Message ID f1499d8252a7f146045e2cab4c95d6857626daef.1577289426.git.baruch@tkos.co.il
State Accepted
Commit 36608b2a843eedc8c44e56cdf2ed5d62ef5e104c
Delegated to: Heiko Schocher
Headers show
Series global_data: remove unused mxc_i2c specific field | expand

Commit Message

Baruch Siach Dec. 25, 2019, 3:57 p.m. UTC
The srdata field is unused since commit 71204e95ce13228 ("i2c: mxc:
refactor i2c driver and support dm").

Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 include/asm-generic/global_data.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Peng Fan Dec. 26, 2019, 1:32 a.m. UTC | #1
> Subject: [PATCH] global_data: remove unused mxc_i2c specific field
> 
> The srdata field is unused since commit 71204e95ce13228 ("i2c: mxc:
> refactor i2c driver and support dm").
> 
> Cc: Peng Fan <peng.fan@nxp.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Reviewed-by: Peng Fan <peng.fan@nxp.com>

> ---
>  include/asm-generic/global_data.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/include/asm-generic/global_data.h
> b/include/asm-generic/global_data.h
> index 7587ba2ee586..5d027329fe0f 100644
> --- a/include/asm-generic/global_data.h
> +++ b/include/asm-generic/global_data.h
> @@ -89,9 +89,6 @@ typedef struct global_data {  #endif  #if
> defined(CONFIG_SYS_I2C)
>  	int		cur_i2c_bus;	/* current used i2c bus */
> -#endif
> -#ifdef CONFIG_SYS_I2C_MXC
> -	void *srdata[10];
>  #endif
>  	unsigned int timebase_h;
>  	unsigned int timebase_l;
> --
> 2.24.0
Heiko Schocher Jan. 29, 2020, 6 a.m. UTC | #2
Hello Baruch,

Am 25.12.2019 um 16:57 schrieb Baruch Siach:
> The srdata field is unused since commit 71204e95ce13228 ("i2c: mxc:
> refactor i2c driver and support dm").
> 
> Cc: Peng Fan <peng.fan@nxp.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
> ---
>   include/asm-generic/global_data.h | 3 ---
>   1 file changed, 3 deletions(-)

Applied to u-boot-i2c master.

Thanks!

bye,
Heiko
diff mbox series

Patch

diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 7587ba2ee586..5d027329fe0f 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -89,9 +89,6 @@  typedef struct global_data {
 #endif
 #if defined(CONFIG_SYS_I2C)
 	int		cur_i2c_bus;	/* current used i2c bus */
-#endif
-#ifdef CONFIG_SYS_I2C_MXC
-	void *srdata[10];
 #endif
 	unsigned int timebase_h;
 	unsigned int timebase_l;