mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Implement the basic serial device bus abstractions required to write a serial device bus device driver with or without the need for initial device data. This includes the following data structures: The `serdev::Driver` trait represents the interface to the driver. The `serdev::Device` abstraction represents a `struct serdev_device`. In order to provide the Serdev specific parts to a generic `driver::Registration` the `driver::RegistrationOps` trait is implemented by `serdev::Adapter`. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Markus Probst <markus.probst@posteo.de> Link: https://patch.msgid.link/20260718-rust_serdev-v16-1-5809384d2e1b@posteo.de Signed-off-by: Danilo Krummrich <dakr@kernel.org>
23 lines
505 B
C
23 lines
505 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/serdev.h>
|
|
|
|
__rust_helper
|
|
void rust_helper_serdev_device_driver_unregister(struct serdev_device_driver *sdrv)
|
|
{
|
|
serdev_device_driver_unregister(sdrv);
|
|
}
|
|
|
|
__rust_helper
|
|
void rust_helper_serdev_device_put(struct serdev_device *serdev)
|
|
{
|
|
serdev_device_put(serdev);
|
|
}
|
|
|
|
__rust_helper
|
|
void rust_helper_serdev_device_set_client_ops(struct serdev_device *serdev,
|
|
const struct serdev_device_ops *ops)
|
|
{
|
|
serdev_device_set_client_ops(serdev, ops);
|
|
}
|