diff options
Diffstat (limited to 'drivers/usb/core/sysfs.c')
| -rw-r--r-- | drivers/usb/core/sysfs.c | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index 777f03c3772..682e8256b95 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c @@ -253,6 +253,15 @@ show_removable(struct device *dev, struct device_attribute *attr, char *buf)  }  static DEVICE_ATTR(removable, S_IRUGO, show_removable, NULL); +static ssize_t +show_ltm_capable(struct device *dev, struct device_attribute *attr, char *buf) +{ +	if (usb_device_supports_ltm(to_usb_device(dev))) +		return sprintf(buf, "%s\n", "yes"); +	return sprintf(buf, "%s\n", "no"); +} +static DEVICE_ATTR(ltm_capable, S_IRUGO, show_ltm_capable, NULL); +  #ifdef	CONFIG_PM  static ssize_t @@ -649,6 +658,7 @@ static struct attribute *dev_attrs[] = {  	&dev_attr_authorized.attr,  	&dev_attr_remove.attr,  	&dev_attr_removable.attr, +	&dev_attr_ltm_capable.attr,  	NULL,  };  static struct attribute_group dev_attr_grp = { | 
