OSDN Git Service

ASoC: cs4271: flat regcache, trivial simplifications
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Mon, 10 Apr 2023 22:39:01 +0000 (00:39 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 11 Apr 2023 11:37:16 +0000 (12:37 +0100)
commit2e9688c81cfc48b210af6f313cb04589b7943e86
tree825c14c21c1b0378964da5ccd69e646b510b39c1
parent80f47122538d40b1a6a2c1a3c2d37b6e51b74224
ASoC: cs4271: flat regcache, trivial simplifications

- Switch to REGCACHE_FLAT, the whole overhead of RBTREE is not worth it
  with non sparse register set in the address range 1..7.
- Move register width to central location

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20230410223902.2321834-3-alexander.sverdlin@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4271-i2c.c
sound/soc/codecs/cs4271-spi.c
sound/soc/codecs/cs4271.c