aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/auxiliary.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2025-06-21 19:43:31 +0000
committerDanilo Krummrich <[email protected]>2025-07-08 22:04:33 +0000
commitc46f60246f9ae372ecc1f10976a8af3914b3f79e (patch)
treec0305ca2bf6257c16f3160354c064178cb38cc23 /rust/helpers/auxiliary.c
parentrust: pci: use generic device drvdata accessors (diff)
downloadkernel-c46f60246f9ae372ecc1f10976a8af3914b3f79e.tar.gz
kernel-c46f60246f9ae372ecc1f10976a8af3914b3f79e.zip
rust: auxiliary: use generic device drvdata accessors
Take advantage of the generic drvdata accessors of the generic Device type. While at it, use from_result() instead of match. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/auxiliary.c')
-rw-r--r--rust/helpers/auxiliary.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/rust/helpers/auxiliary.c b/rust/helpers/auxiliary.c
index 0db3860d774e..8b5e0fea4493 100644
--- a/rust/helpers/auxiliary.c
+++ b/rust/helpers/auxiliary.c
@@ -2,16 +2,6 @@
#include <linux/auxiliary_bus.h>
-void rust_helper_auxiliary_set_drvdata(struct auxiliary_device *adev, void *data)
-{
- auxiliary_set_drvdata(adev, data);
-}
-
-void *rust_helper_auxiliary_get_drvdata(struct auxiliary_device *adev)
-{
- return auxiliary_get_drvdata(adev);
-}
-
void rust_helper_auxiliary_device_uninit(struct auxiliary_device *adev)
{
return auxiliary_device_uninit(adev);