diff options
author | Bruno Prémont <bonbons@linux-vserver.org> | 2012-07-30 15:38:28 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-08-15 04:08:57 -0400 |
commit | fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 (patch) | |
tree | 25d6b1bbfee02aadca929130cb0d35bf8e8f9c17 /drivers/hid/hid-picolcd_cir.c | |
parent | e8ff13b0bf88b5e696323a1eec877783d965b3c6 (diff) |
HID: picoLCD: split driver code
In order to make code maintenance easier, split the vairous
functions into individial files (this removes a bunch of #ifdefs).
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-picolcd_cir.c')
-rw-r--r-- | drivers/hid/hid-picolcd_cir.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/drivers/hid/hid-picolcd_cir.c b/drivers/hid/hid-picolcd_cir.c new file mode 100644 index 000000000000..dc632c3cab36 --- /dev/null +++ b/drivers/hid/hid-picolcd_cir.c | |||
@@ -0,0 +1,61 @@ | |||
1 | /*************************************************************************** | ||
2 | * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> * | ||
3 | * * | ||
4 | * Based on Logitech G13 driver (v0.4) * | ||
5 | * Copyright (C) 2009 by Rick L. Vinyard, Jr. <rvinyard@cs.nmsu.edu> * | ||
6 | * * | ||
7 | * This program is free software: you can redistribute it and/or modify * | ||
8 | * it under the terms of the GNU General Public License as published by * | ||
9 | * the Free Software Foundation, version 2 of the License. * | ||
10 | * * | ||
11 | * This driver is distributed in the hope that it will be useful, but * | ||
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | ||
14 | * General Public License for more details. * | ||
15 | * * | ||
16 | * You should have received a copy of the GNU General Public License * | ||
17 | * along with this software. If not see <http://www.gnu.org/licenses/>. * | ||
18 | ***************************************************************************/ | ||
19 | |||
20 | #include <linux/hid.h> | ||
21 | #include <linux/hid-debug.h> | ||
22 | #include <linux/input.h> | ||
23 | #include "hid-ids.h" | ||
24 | #include "usbhid/usbhid.h" | ||
25 | #include <linux/usb.h> | ||
26 | |||
27 | #include <linux/fb.h> | ||
28 | #include <linux/vmalloc.h> | ||
29 | #include <linux/backlight.h> | ||
30 | #include <linux/lcd.h> | ||
31 | |||
32 | #include <linux/leds.h> | ||
33 | |||
34 | #include <linux/seq_file.h> | ||
35 | #include <linux/debugfs.h> | ||
36 | |||
37 | #include <linux/completion.h> | ||
38 | #include <linux/uaccess.h> | ||
39 | #include <linux/module.h> | ||
40 | |||
41 | #include "hid-picolcd.h" | ||
42 | |||
43 | |||
44 | int picolcd_raw_cir(struct picolcd_data *data, | ||
45 | struct hid_report *report, u8 *raw_data, int size) | ||
46 | { | ||
47 | /* Need understanding of CIR data format to implement ... */ | ||
48 | return 1; | ||
49 | } | ||
50 | |||
51 | /* initialize CIR input device */ | ||
52 | int picolcd_init_cir(struct picolcd_data *data, struct hid_report *report) | ||
53 | { | ||
54 | /* support not implemented yet */ | ||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | void picolcd_exit_cir(struct picolcd_data *data) | ||
59 | { | ||
60 | } | ||
61 | |||