]> git.proxmox.com Git - mirror_qemu.git/commit
i2c: Move typedef of bitbang_i2c_interface to i2c.h
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 28 Nov 2018 19:27:06 +0000 (20:27 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2019 01:36:21 +0000 (20:36 -0500)
commit22acdb9937fd87244f0775ec49f50470fd4340c6
tree7a7784269d26d291c0b872f8abb9937615e4e1e4
parent93ef995b2c4c39304bde5f2440e0f286aaa160e7
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