i2c: Move typedef of bitbang_i2c_interface to i2c.h
commit08c410e3907e055d6fc51f4ebf5596cf64a3389c
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 28 Nov 2018 19:27:06 +0000 (28 20:27 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 28 Mar 2019 01:03:43 +0000 (27 20:03 -0500)
tree0f725287fcedb99d992bb503951c4a518fcd3cf5
parent32a1a94dd324d33578dca1dc96d7896a0244d768
i2c: Move typedef of bitbang_i2c_interface to i2c.h

Clang 3.4 considers duplicate typedef in ppc4xx_i2c.h and
bitbang_i2c.h an error even if they are identical. Move it to a common
place to allow building with this clang version.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 2b4c1125ac3db2734222ff43c25388a16aca4a99)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i2c/bitbang_i2c.h
include/hw/i2c/i2c.h
include/hw/i2c/ppc4xx_i2c.h