Re: [PATCH] input: cros_ec_keyb: fix button/switch capability reports

2018-11-12 Thread Dmitry Torokhov
On Wed, Nov 07, 2018 at 02:38:13PM -0800, Brian Norris wrote: > The cros_ec_keyb_bs array lists buttons and switches together, expecting > that its users will match the appropriate type and bit fields. But > cros_ec_keyb_register_bs() only checks the 'bit' field, which causes > misreported input ca

Re: [PATCH] input: cros_ec_keyb: fix button/switch capability reports

2018-11-08 Thread Heiko Stuebner
Am Mittwoch, 7. November 2018, 23:38:13 CET schrieb Brian Norris: > The cros_ec_keyb_bs array lists buttons and switches together, expecting > that its users will match the appropriate type and bit fields. But > cros_ec_keyb_register_bs() only checks the 'bit' field, which causes > misreported inpu

[PATCH] input: cros_ec_keyb: fix button/switch capability reports

2018-11-07 Thread Brian Norris
The cros_ec_keyb_bs array lists buttons and switches together, expecting that its users will match the appropriate type and bit fields. But cros_ec_keyb_register_bs() only checks the 'bit' field, which causes misreported input capabilities in some cases. For example, tablets (e.g., Scarlet -- a.k.a

[PATCH] input: cros_ec_keyb: fix button/switch capability reports

2018-11-07 Thread Brian Norris
The cros_ec_keyb_bs array lists buttons and switches together, expecting that its users will match the appropriate type and bit fields. But cros_ec_keyb_register_bs() only checks the 'bit' field, which causes misreported input capabilities in some cases. For example, tablets (e.g., Scarlet -- a.k.a