rust: device: Use as_char_ptr() to avoid explicit cast
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 16 Jan 2025 08:34:43 +0000 (14:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jan 2025 10:07:27 +0000 (11:07 +0100)
commit01b3cb620815fc3feb90ee117d9445a5b608a9f7
tree3b69bff13893be6ea9b8b6b119921a631bd13ba0
parente1cd24af8ff2ad7e26e1711be3d7bd72eef24279
rust: device: Use as_char_ptr() to avoid explicit cast

Use as_char_ptr() to avoid explicit cast.

Suggested-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/a88cd29bf01c8fbafd5c2608357f54ea10f6e492.1737016320.git.viresh.kumar@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/device.rs