diff mbox

[V5,1/8] i2cbus: remove unused dev field

Message ID 1445002914-7351-2-git-send-email-fred.konrad@greensocs.com
State New
Headers show

Commit Message

fred.konrad@greensocs.com Oct. 16, 2015, 1:41 p.m. UTC
From: KONRAD Frederic <fred.konrad@greensocs.com>

The dev field in i2cbus is not used.
So just drop it.

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Tested-By: Hyun Kwon <hyun.kwon@xilinx.com>
---
 hw/i2c/core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Peter Crosthwaite Oct. 18, 2015, 4:30 p.m. UTC | #1
On Fri, Oct 16, 2015 at 6:41 AM,  <fred.konrad@greensocs.com> wrote:
> From: KONRAD Frederic <fred.konrad@greensocs.com>
>
> The dev field in i2cbus is not used.
> So just drop it.
>
> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
> Tested-By: Hyun Kwon <hyun.kwon@xilinx.com>

Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>

> ---
>  hw/i2c/core.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/hw/i2c/core.c b/hw/i2c/core.c
> index 5a64026..e0f92de 100644
> --- a/hw/i2c/core.c
> +++ b/hw/i2c/core.c
> @@ -13,7 +13,6 @@ struct I2CBus
>  {
>      BusState qbus;
>      I2CSlave *current_dev;
> -    I2CSlave *dev;
>      uint8_t saved_address;
>  };
>
> --
> 1.9.0
>
diff mbox

Patch

diff --git a/hw/i2c/core.c b/hw/i2c/core.c
index 5a64026..e0f92de 100644
--- a/hw/i2c/core.c
+++ b/hw/i2c/core.c
@@ -13,7 +13,6 @@  struct I2CBus
 {
     BusState qbus;
     I2CSlave *current_dev;
-    I2CSlave *dev;
     uint8_t saved_address;
 };