]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: do not use TYPE_CHARDEV unnecessarily
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Oct 2024 12:46:42 +0000 (14:46 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 13:18:16 +0000 (14:18 +0100)
commitf60f3670fd15edaa9dc6471dde26703b4417b815
treef4db562c0569fdf0bdc12896d9d6079419910e10
parent6e50bde1e1c8edc70145fb87b21b0d0843250600
rust: do not use TYPE_CHARDEV unnecessarily

In the invocation of qdev_prop_set_chr(), "chardev" is the name of a
property rather than a type and has to match the name of the property
in device_class.rs.  Do not use TYPE_CHARDEV here, just like in the C
version of pl011_create.

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs