mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 14:53:11 +01:00
Add basic USB abstractions, consisting of usb::{Device, Interface,
Driver, Adapter, DeviceId} and the module_usb_driver macro. This is the
first step in being able to write USB device drivers, which paves the
way for USB media drivers - for example - among others.
This initial support will then be used by a subsequent sample driver,
which constitutes the only user of the USB abstractions so far.
Signed-off-by: Daniel Almeida <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ force USB = y for now - gregkh ]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
9 lines
179 B
C
9 lines
179 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/usb.h>
|
|
|
|
struct usb_device *rust_helper_interface_to_usbdev(struct usb_interface *intf)
|
|
{
|
|
return interface_to_usbdev(intf);
|
|
}
|