From 7996a3d79d55b7f879dfd62e202bbfe2963718d3 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 27 Jul 2013 22:15:01 +0000 Subject: really properly move files --- libdde-linux26/contrib/include/linux/usb/input.h | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libdde-linux26/contrib/include/linux/usb/input.h (limited to 'libdde-linux26/contrib/include/linux/usb/input.h') diff --git a/libdde-linux26/contrib/include/linux/usb/input.h b/libdde-linux26/contrib/include/linux/usb/input.h new file mode 100644 index 00000000..0e010b22 --- /dev/null +++ b/libdde-linux26/contrib/include/linux/usb/input.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2005 Dmitry Torokhov + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + */ + +#ifndef __LINUX_USB_INPUT_H +#define __LINUX_USB_INPUT_H + +#include +#include +#include + +static inline void +usb_to_input_id(const struct usb_device *dev, struct input_id *id) +{ + id->bustype = BUS_USB; + id->vendor = le16_to_cpu(dev->descriptor.idVendor); + id->product = le16_to_cpu(dev->descriptor.idProduct); + id->version = le16_to_cpu(dev->descriptor.bcdDevice); +} + +#endif /* __LINUX_USB_INPUT_H */ -- cgit v1.2.3