Input: cap11xx - stop using chip ID when configuring it
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 13 Dec 2023 05:33:58 +0000 (21:33 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Jun 2024 19:32:31 +0000 (12:32 -0700)
commitf4c7fa7c058b9893b7a949cdb2f2aa504903f497
tree6338b4c56f9cc927e5bf40a1c3a5bbdba7963ee5
parent6560cfcfb46511d47893d6e3994ce1d3c58ddf7f
Input: cap11xx - stop using chip ID when configuring it

struct cap11xx_hw_model is supposed to describe the chip capabilities,
however later code changes introduced checks against chip ID.

Introduce new capabilities in cap11xx_hw_model and use them when applying
chip configuration, and remove the enum for chip ID. While at it, rename
no_gain to has_gain to match the rest of the new capabilities.

Reviewed-by: Jiri Valek - 2N <jiriv@axis.com>
Link: https://lore.kernel.org/r/ZXlCRsnOu_L8xeTC@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cap11xx.c