Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Brown and committed by
Dmitry Torokhov
39bd68d4 2e3ae000

-3
-3
drivers/input/keyboard/cap11xx.c
··· 173 173 case CAP11XX_REG_SENOR_DELTA(3): 174 174 case CAP11XX_REG_SENOR_DELTA(4): 175 175 case CAP11XX_REG_SENOR_DELTA(5): 176 - case CAP11XX_REG_PRODUCT_ID: 177 - case CAP11XX_REG_MANUFACTURER_ID: 178 - case CAP11XX_REG_REVISION: 179 176 return true; 180 177 } 181 178