19473e51cc
hw/i2c/smbus: Use DeviceClass::realize instead of SMBusDeviceClass::init
...
SMBusDeviceClass::init is no more used, remove it.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180419212727.26095-2-f4bug@amsat.org >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20180528144509.15812-2-armbru@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2018-06-01 15:14:31 +02:00
046a184414
smbus: return -1 if nothing found at the given address
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Acked-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2014-05-07 19:14:46 +03:00
285364e968
smbus: allow returning an error from reads
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Acked-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2014-05-07 19:14:41 +03:00
a5c828525e
i2c: Rename i2c_bus to I2CBus
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 16:22:31 +01:00
0d09e41a51
hw: move headers to include/
...
Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:10 +02:00