Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: endpoint: drop custom sysfs attribute structure

Nowadays the USB endpoints use device attributes,
so the custom structure is unused.

Drop it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20260223-sysfs-const-usb-v1-1-54c4434d83c8@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
d6a093c3 ec53fe37

-8
-8
drivers/usb/core/endpoint.c
··· 26 26 #define to_ep_device(_dev) \ 27 27 container_of(_dev, struct ep_device, dev) 28 28 29 - struct ep_attribute { 30 - struct attribute attr; 31 - ssize_t (*show)(struct usb_device *, 32 - struct usb_endpoint_descriptor *, char *); 33 - }; 34 - #define to_ep_attribute(_attr) \ 35 - container_of(_attr, struct ep_attribute, attr) 36 - 37 29 #define usb_ep_attr(field, format_string) \ 38 30 static ssize_t field##_show(struct device *dev, \ 39 31 struct device_attribute *attr, \