hidraw.h (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) | hidraw.h (b6787242f32700377d3da3b8d788ab3928bab849) |
---|---|
1#ifndef _HIDRAW_H 2#define _HIDRAW_H 3 4/* 5 * Copyright (c) 2007 Jiri Kosina 6 */ 7 8/* --- 62 unchanged lines hidden (view full) --- 71 struct hidraw *hidraw; 72 struct list_head node; 73 struct mutex read_mutex; 74}; 75 76#ifdef CONFIG_HIDRAW 77int hidraw_init(void); 78void hidraw_exit(void); | 1#ifndef _HIDRAW_H 2#define _HIDRAW_H 3 4/* 5 * Copyright (c) 2007 Jiri Kosina 6 */ 7 8/* --- 62 unchanged lines hidden (view full) --- 71 struct hidraw *hidraw; 72 struct list_head node; 73 struct mutex read_mutex; 74}; 75 76#ifdef CONFIG_HIDRAW 77int hidraw_init(void); 78void hidraw_exit(void); |
79void hidraw_report_event(struct hid_device *, u8 *, int); | 79int hidraw_report_event(struct hid_device *, u8 *, int); |
80int hidraw_connect(struct hid_device *); 81void hidraw_disconnect(struct hid_device *); 82#else 83static inline int hidraw_init(void) { return 0; } 84static inline void hidraw_exit(void) { } | 80int hidraw_connect(struct hid_device *); 81void hidraw_disconnect(struct hid_device *); 82#else 83static inline int hidraw_init(void) { return 0; } 84static inline void hidraw_exit(void) { } |
85static inline void hidraw_report_event(struct hid_device *hid, u8 *data, int len) { } | 85static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { } |
86static inline int hidraw_connect(struct hid_device *hid) { return -1; } 87static inline void hidraw_disconnect(struct hid_device *hid) { } 88#endif 89 90#endif 91 92#endif | 86static inline int hidraw_connect(struct hid_device *hid) { return -1; } 87static inline void hidraw_disconnect(struct hid_device *hid) { } 88#endif 89 90#endif 91 92#endif |