diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-05-05 17:12:55 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-03 05:07:02 -0400 |
commit | 0ea1675723021bc412bc9ea5d601e2b5660b5f8c (patch) | |
tree | ac28f5e21ce9ba1bfa5c0723695f12a015e02b27 /drivers/hid/hid-wiimote.h | |
parent | 6c5ae01805e2cc1810328b538ccb2376b5f8bd9f (diff) |
HID: wiimote: convert ACCEL to module
Accelerometer data is very similar to KEYS handling. Therefore, convert
all ACCEL related handling into a sub-device module similar to KEYS.
This doesn't change any semantics but only moves code over to
wiimote-modules.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-wiimote.h')
-rw-r--r-- | drivers/hid/hid-wiimote.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-wiimote.h b/drivers/hid/hid-wiimote.h index 66150a693324..8c242e615ab2 100644 --- a/drivers/hid/hid-wiimote.h +++ b/drivers/hid/hid-wiimote.h | |||
@@ -133,6 +133,7 @@ enum wiimod_module { | |||
133 | WIIMOD_LED2, | 133 | WIIMOD_LED2, |
134 | WIIMOD_LED3, | 134 | WIIMOD_LED3, |
135 | WIIMOD_LED4, | 135 | WIIMOD_LED4, |
136 | WIIMOD_ACCEL, | ||
136 | WIIMOD_NUM, | 137 | WIIMOD_NUM, |
137 | WIIMOD_NULL = WIIMOD_NUM, | 138 | WIIMOD_NULL = WIIMOD_NUM, |
138 | }; | 139 | }; |
@@ -191,6 +192,7 @@ extern void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm); | |||
191 | extern void wiiproto_req_rumble(struct wiimote_data *wdata, __u8 rumble); | 192 | extern void wiiproto_req_rumble(struct wiimote_data *wdata, __u8 rumble); |
192 | extern void wiiproto_req_leds(struct wiimote_data *wdata, int leds); | 193 | extern void wiiproto_req_leds(struct wiimote_data *wdata, int leds); |
193 | extern void wiiproto_req_status(struct wiimote_data *wdata); | 194 | extern void wiiproto_req_status(struct wiimote_data *wdata); |
195 | extern void wiiproto_req_accel(struct wiimote_data *wdata, __u8 accel); | ||
194 | extern int wiimote_cmd_write(struct wiimote_data *wdata, __u32 offset, | 196 | extern int wiimote_cmd_write(struct wiimote_data *wdata, __u32 offset, |
195 | const __u8 *wmem, __u8 size); | 197 | const __u8 *wmem, __u8 size); |
196 | extern ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, | 198 | extern ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, |