mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 22:21:42 +02:00

Implement the basic auxiliary abstractions required to implement a driver matching an auxiliary device. The design and implementation is analogous to PCI and platform and is based on the generic device / driver abstractions. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20250414131934.28418-4-dakr@kernel.org [ Fix typos, `let _ =` => `drop()`, use `kernel::ffi`. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
23 lines
538 B
C
23 lines
538 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#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);
|
|
}
|
|
|
|
void rust_helper_auxiliary_device_delete(struct auxiliary_device *adev)
|
|
{
|
|
return auxiliary_device_delete(adev);
|
|
}
|