@@ -823,6 +823,7 @@ struct hid_driver {
* @output_report: send output report to device
* @idle: send idle request to device
* @may_wakeup: return if device may act as a wakeup source during system-suspend
+ * @reset: reset the device
*/
struct hid_ll_driver {
int (*start)(struct hid_device *hdev);
@@ -848,6 +849,8 @@ struct hid_ll_driver {
int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
bool (*may_wakeup)(struct hid_device *hdev);
+
+ void (*reset)(struct hid_device *hdev);
};
extern struct hid_ll_driver i2c_hid_ll_driver;
This new API allows a device driver to reset the device. Signed-off-by: Dmitry Antipov <dmanti@microsoft.com> --- include/linux/hid.h | 3 +++ 1 file changed, 3 insertions(+)