diff options
| author | Danilo Krummrich <[email protected]> | 2025-06-21 19:43:29 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-07-08 22:04:33 +0000 |
| commit | f0a68a912c673d8899d863c2f01f1ef7006e0b11 (patch) | |
| tree | d37c10badd87a0144a433624a16f3969febace09 /rust/helpers/platform.c | |
| parent | rust: device: add drvdata accessors (diff) | |
| download | kernel-f0a68a912c673d8899d863c2f01f1ef7006e0b11.tar.gz kernel-f0a68a912c673d8899d863c2f01f1ef7006e0b11.zip | |
rust: platform: 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/platform.c')
| -rw-r--r-- | rust/helpers/platform.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rust/helpers/platform.c b/rust/helpers/platform.c index 82171233d12f..1ce89c1a36f7 100644 --- a/rust/helpers/platform.c +++ b/rust/helpers/platform.c @@ -2,16 +2,6 @@ #include <linux/platform_device.h> -void *rust_helper_platform_get_drvdata(const struct platform_device *pdev) -{ - return platform_get_drvdata(pdev); -} - -void rust_helper_platform_set_drvdata(struct platform_device *pdev, void *data) -{ - platform_set_drvdata(pdev, data); -} - bool rust_helper_dev_is_platform(const struct device *dev) { return dev_is_platform(dev); |
