i2c: Move bitbang_i2c.h to include/hw/i2c/
commitd718b7475b188dd47c10b24f8d2c46326b37094a
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 20 Jun 2019 10:55:23 +0000 (20 12:55 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 28 Jun 2019 08:49:36 +0000 (28 10:49 +0200)
treefa63b650bd4fe8eb764fa18abd36ecd7877740f0
parent474f3938d79ab36b9231c9ad3b5a9314c2aeacde
i2c: Move bitbang_i2c.h to include/hw/i2c/

The bitbang i2c implementation is also useful for other device models
such as DDC in display controllers. Move the header to include/hw/i2c/
to allow it to be used from other device models and adjust users of
this include. This also reverts commit 2b4c1125ac which is no longer
needed.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-id: 5d1fe4db846ab9be4b77ddb0d43cc74cd200a003.1561028123.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/i2c/bitbang_i2c.c
hw/i2c/ppc4xx_i2c.c
hw/i2c/versatile_i2c.c
include/hw/i2c/bitbang_i2c.h [moved from hw/i2c/bitbang_i2c.h with 80% similarity]
include/hw/i2c/i2c.h
include/hw/i2c/ppc4xx_i2c.h