diff --git a/include/linux/hid.h b/include/linux/hid.h index c014f095dcac..a07fa623fd0c 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -773,6 +773,11 @@ static inline bool hid_is_using_ll_driver(struct hid_device *hdev, return hdev->ll_driver == driver; } +static inline bool hid_is_usb(struct hid_device *hdev) +{ + return hid_is_using_ll_driver(hdev, &usb_hid_driver); +} + #define PM_HINT_FULLON 1<<5 #define PM_HINT_NORMAL 1<<1