summaryrefslogtreecommitdiff
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2026-02-23 22:20:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-11 15:48:20 +0100
commitd6a093c3bf0e4e073b87022ac34b261979325228 (patch)
treed0adb349d3d9c6de7dd6c41ec4ef4036f3c56d47 /drivers/usb/core
parentec53fe37a56044a1a8e7751d05b13385fb30741f (diff)
downloadlwn-d6a093c3bf0e4e073b87022ac34b261979325228.tar.gz
lwn-d6a093c3bf0e4e073b87022ac34b261979325228.zip
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>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/endpoint.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/core/endpoint.c b/drivers/usb/core/endpoint.c
index 4137ab47f1cd..e00eaf9e22cd 100644
--- a/drivers/usb/core/endpoint.c
+++ b/drivers/usb/core/endpoint.c
@@ -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, \