aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/ch9.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb/ch9.h')
-rw-r--r--include/linux/usb/ch9.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h
index 27603bcbb9b9..6cc96bb12ddc 100644
--- a/include/linux/usb/ch9.h
+++ b/include/linux/usb/ch9.h
@@ -32,9 +32,9 @@
32#ifndef __LINUX_USB_CH9_H 32#ifndef __LINUX_USB_CH9_H
33#define __LINUX_USB_CH9_H 33#define __LINUX_USB_CH9_H
34 34
35#include <linux/device.h>
35#include <uapi/linux/usb/ch9.h> 36#include <uapi/linux/usb/ch9.h>
36 37
37
38/** 38/**
39 * usb_speed_string() - Returns human readable-name of the speed. 39 * usb_speed_string() - Returns human readable-name of the speed.
40 * @speed: The speed to return human-readable name for. If it's not 40 * @speed: The speed to return human-readable name for. If it's not
@@ -43,6 +43,15 @@
43 */ 43 */
44extern const char *usb_speed_string(enum usb_device_speed speed); 44extern const char *usb_speed_string(enum usb_device_speed speed);
45 45
46/**
47 * usb_get_maximum_speed - Get maximum requested speed for a given USB
48 * controller.
49 * @dev: Pointer to the given USB controller device
50 *
51 * The function gets the maximum speed string from property "maximum-speed",
52 * and returns the corresponding enum usb_device_speed.
53 */
54extern enum usb_device_speed usb_get_maximum_speed(struct device *dev);
46 55
47/** 56/**
48 * usb_state_string - Returns human readable name for the state. 57 * usb_state_string - Returns human readable name for the state.