It's only used once in struct cyapa_reg_data, so lets just
hard code it there.
Signed-off-by: Benson Leung <bleung@chromium.org>
BUG=chromium-os:21047
TEST=builds clean.
Change-Id: I6d39e70f369b0825238022a38111e2fa42862c5e
Reviewed-on: https://gerrit.chromium.org/gerrit/37745
Reviewed-by: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Commit-Ready: Benson Leung <bleung@chromium.org>
/* The touch.id is used as the MT slot id, thus max MT slot is 15 */
#define CYAPA_MAX_MT_SLOTS 15
-/* CYAPA reports up to 5 touches per packet. */
-#define CYAPA_MAX_TOUCHES 5
-
struct cyapa_reg_data {
/*
* bit 0 - 1: device status
* bit 0: left mechanism button state if exists
*/
u8 finger_btn;
- struct cyapa_touch touches[CYAPA_MAX_TOUCHES];
+ /* CYAPA reports up to 5 touches per packet. */
+ struct cyapa_touch touches[5];
} __packed;
/* The main device structure */