aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-wiimote-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-wiimote-core.c')
-rw-r--r--drivers/hid/hid-wiimote-core.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 919abbaba840..2fd2f0337b8d 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -320,14 +320,8 @@ static void wiiproto_req_wmem(struct wiimote_data *wdata, bool eeprom,
320 wiimote_queue(wdata, cmd, sizeof(cmd)); 320 wiimote_queue(wdata, cmd, sizeof(cmd));
321} 321}
322 322
323#define wiiproto_req_rreg(wdata, os, sz) \ 323void wiiproto_req_rmem(struct wiimote_data *wdata, bool eeprom, __u32 offset,
324 wiiproto_req_rmem((wdata), false, (os), (sz)) 324 __u16 size)
325
326#define wiiproto_req_reeprom(wdata, os, sz) \
327 wiiproto_req_rmem((wdata), true, (os), (sz))
328
329static void wiiproto_req_rmem(struct wiimote_data *wdata, bool eeprom,
330 __u32 offset, __u16 size)
331{ 325{
332 __u8 cmd[7]; 326 __u8 cmd[7];
333 327