]> Git Repo - linux.git/blame - drivers/hid/hid-roccat-common.h
HID: roccat: fix wrong hid_err usage on struct usb_device
[linux.git] / drivers / hid / hid-roccat-common.h
CommitLineData
5772f636
SA
1#ifndef __HID_ROCCAT_COMMON_H
2#define __HID_ROCCAT_COMMON_H
3
4/*
5 * Copyright (c) 2011 Stefan Achatz <[email protected]>
6 */
7
8/*
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the Free
11 * Software Foundation; either version 2 of the License, or (at your option)
12 * any later version.
13 */
14
15#include <linux/usb.h>
16#include <linux/types.h>
17
4728f2dc
SA
18enum roccat_common_commands {
19 ROCCAT_COMMON_COMMAND_CONTROL = 0x4,
20};
21
22struct roccat_common_control {
23 uint8_t command;
24 uint8_t value;
25 uint8_t request; /* always 0 on requesting write check */
26} __packed;
27
1edd5b42 28int roccat_common_receive(struct usb_device *usb_dev, uint report_id,
5772f636 29 void *data, uint size);
1edd5b42 30int roccat_common_send(struct usb_device *usb_dev, uint report_id,
5772f636 31 void const *data, uint size);
4728f2dc
SA
32int roccat_common_send_with_status(struct usb_device *usb_dev,
33 uint command, void const *buf, uint size);
5772f636
SA
34
35#endif
This page took 0.153631 seconds and 4 git commands to generate.