qemu/rust/hw/char/pl011/src
Peter Maydell 816945364f rust: pl011: Allow NULL chardev argument to pl011_create()
It's valid for the caller to pass a NULL chardev to pl011_create();
this means "don't set the chardev property on the device", which
in turn means "act like there's no chardev". All the chardev
frontend APIs (in C, at least) accept a NULL pointer to mean
"do nothing".

This fixes some failures in 'make check-functional' when Rust support
is enabled.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20250307190051.3274226-1-peter.maydell@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-03-09 11:25:10 +01:00
..
device.rs rust: pl011: Allow NULL chardev argument to pl011_create() 2025-03-09 11:25:10 +01:00
device_class.rs rust: prefer importing std::ptr over core::ptr 2025-02-25 16:18:11 +01:00
lib.rs rust: hpet: decode HPET registers into enums 2025-03-06 12:44:47 +01:00
registers.rs rust: pl011: move register definitions out of lib.rs 2025-03-06 12:44:47 +01:00