]> git.proxmox.com Git - qemu.git/commit
fdc: QOM'ify some more
authorHu Tao <hutao@cn.fujitsu.com>
Mon, 1 Jul 2013 10:18:24 +0000 (18:18 +0800)
committerAndreas Färber <afaerber@suse.de>
Mon, 22 Jul 2013 22:37:34 +0000 (00:37 +0200)
commitdd3be7420774f7dc8f37a96ca24d07f0b6f31b3b
tree86df612c0615e1d7a4afbbc3a50260a813ec58f1
parent62d92e432f586b2bb99d7824f684df4ebd412ea1
fdc: QOM'ify some more

Introduce type constant and avoid DO_UPCAST(), container_of(),
and use DEVICE() to avoid accessing parent qdev directly.

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
[AF: Renamed parent field and avoided repeated SYS_BUS_DEVICE() casts]
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/block/fdc.c