hid-roccat-common.c (6ad390a25a9d1d8606b9b826878f0a30639dc2b3) hid-roccat-common.c (8f86a2c3cb90e8bb0733de2d2b0abbe7050bb536)
1/*
2 * Roccat common functions for device specific drivers
3 *
4 * Copyright (c) 2011 Stefan Achatz <erazor_de@users.sourceforge.net>
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
11 * any later version.
12 */
13
14#include <linux/hid.h>
15#include <linux/slab.h>
1/*
2 * Roccat common functions for device specific drivers
3 *
4 * Copyright (c) 2011 Stefan Achatz <erazor_de@users.sourceforge.net>
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
11 * any later version.
12 */
13
14#include <linux/hid.h>
15#include <linux/slab.h>
16#include <linux/module.h>
16#include "hid-roccat-common.h"
17
18static inline uint16_t roccat_common_feature_report(uint8_t report_id)
19{
20 return 0x300 | report_id;
21}
22
23int roccat_common_receive(struct usb_device *usb_dev, uint report_id,

--- 47 unchanged lines hidden ---
17#include "hid-roccat-common.h"
18
19static inline uint16_t roccat_common_feature_report(uint8_t report_id)
20{
21 return 0x300 | report_id;
22}
23
24int roccat_common_receive(struct usb_device *usb_dev, uint report_id,

--- 47 unchanged lines hidden ---