diff options
Diffstat (limited to 'drivers/input/mouse/cyapa_gen6.c')
-rw-r--r-- | drivers/input/mouse/cyapa_gen6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/cyapa_gen6.c b/drivers/input/mouse/cyapa_gen6.c index 7eba66fbef58..812edfced86e 100644 --- a/drivers/input/mouse/cyapa_gen6.c +++ b/drivers/input/mouse/cyapa_gen6.c | |||
@@ -573,7 +573,7 @@ static int cyapa_pip_retrieve_data_structure(struct cyapa *cyapa, | |||
573 | 573 | ||
574 | memset(&cmd, 0, sizeof(cmd)); | 574 | memset(&cmd, 0, sizeof(cmd)); |
575 | put_unaligned_le16(PIP_OUTPUT_REPORT_ADDR, &cmd.head.addr); | 575 | put_unaligned_le16(PIP_OUTPUT_REPORT_ADDR, &cmd.head.addr); |
576 | put_unaligned_le16(sizeof(cmd), &cmd.head.length - 2); | 576 | put_unaligned_le16(sizeof(cmd) - 2, &cmd.head.length); |
577 | cmd.head.report_id = PIP_APP_CMD_REPORT_ID; | 577 | cmd.head.report_id = PIP_APP_CMD_REPORT_ID; |
578 | cmd.head.cmd_code = PIP_RETRIEVE_DATA_STRUCTURE; | 578 | cmd.head.cmd_code = PIP_RETRIEVE_DATA_STRUCTURE; |
579 | put_unaligned_le16(read_offset, &cmd.read_offset); | 579 | put_unaligned_le16(read_offset, &cmd.read_offset); |