mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00: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 <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Fix typos, `let _ =` => `drop()`, use `kernel::ffi`. - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
24 lines
538 B
C
24 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);
|
|
}
|