HID: core: move Usage Page concatenation to Main item [1/1]
authorPengfei Zhao <pengfei.zhao@amlogic.com>
Thu, 10 Oct 2019 06:40:30 +0000 (14:40 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 10 Oct 2019 08:53:28 +0000 (01:53 -0700)
commite611bb331f9099d54274d5bd5cf68f233e254198
treeda42c6e859b9a4e386f384131d4f426dbcc2131a
parent77de3d55bb391070f91ff271ee81a2b2dd910884
HID: core: move Usage Page concatenation to Main item [1/1]

PD#SWPL-10069

Problem:
android.hardware.input.cts.tests.AsusGamepadTestCase#testAllMotions
android.hardware.input.cts.tests.AsusGamepadTestCase#testAllKeys

Solution:
adds usage_page_last to flag whether Usage Page is after
Usage ID items. usage_page_last is false default, it is set as true
once Usage Page item is encountered and is reverted by next Usage ID
item.
google bug=138556465
https://lkml.org/lkml/2019/10/9/430

Verify:
franklin

Change-Id: I7593132556e32fe0979906447b3162f1cf30bbc3
Signed-off-by: Pengfei Zhao <pengfei.zhao@amlogic.com>
drivers/hid/hid-core.c
include/linux/hid.h