]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: endpoint: drop custom sysfs attribute structure
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 23 Feb 2026 21:20:33 +0000 (22:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:48:20 +0000 (15:48 +0100)
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>
drivers/usb/core/endpoint.c

index 4137ab47f1cd0f1e16af279119d1fd1b2f594bf3..e00eaf9e22cd0913a47634fdd449a19d859c1a68 100644 (file)
@@ -26,14 +26,6 @@ struct ep_device {
 #define to_ep_device(_dev) \
        container_of(_dev, struct ep_device, dev)
 
-struct ep_attribute {
-       struct attribute attr;
-       ssize_t (*show)(struct usb_device *,
-                       struct usb_endpoint_descriptor *, char *);
-};
-#define to_ep_attribute(_attr) \
-       container_of(_attr, struct ep_attribute, attr)
-
 #define usb_ep_attr(field, format_string)                      \
 static ssize_t field##_show(struct device *dev,                        \
                               struct device_attribute *attr,   \