diff options
author | Danilo Krummrich <dakr@kernel.org> | 2025-06-21 21:43:31 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-07-09 00:04:33 +0200 |
commit | c46f60246f9ae372ecc1f10976a8af3914b3f79e (patch) | |
tree | c0305ca2bf6257c16f3160354c064178cb38cc23 /rust/helpers/auxiliary.c | |
parent | 4231712c8e9840c023192032d438f98061b9ee1f (diff) |
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/20250621195118.124245-6-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/helpers/auxiliary.c')
-rw-r--r-- | rust/helpers/auxiliary.c | 10 |
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); |