Input: cap11xx - cache hardware ID registers
authorMark Brown <broonie@kernel.org>
Sat, 30 Sep 2023 23:43:38 +0000 (01:43 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 13 Dec 2023 05:39:09 +0000 (21:39 -0800)
commit39bd68d422ba085997fb1f26160d7c686915b3cb
tree389c33de9430a0088e8094f3667b81b1cdc86c72
parent2e3ae00021901461455b6a9ff4ef850817e9ab6d
Input: cap11xx - cache hardware ID registers

The cap11xx devices have three hardware identification registers which are
currently marked as volatile, preventing caching of those registers. This
is not ideal since the registers should never change at runtime, we should
be able to cache the value after the first read. Stop marking the registers
as volatile, we don't have register defaults specified in the driver so
this will result in reading from the hardware on first use.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20231001-input-maple-v1-1-ed3716051431@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cap11xx.c