OSDN Git Service

ASoC: jz4740-i2s: Simplify using regmap fields
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Sun, 23 Oct 2022 14:33:22 +0000 (15:33 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:18:15 +0000 (14:18 +0100)
commit0fddb4bce669fd255f6ffade6905da5c8ed3e254
tree0da7a6e150a367e1b204f157983ed58de7ab9fdb
parentcf375e693252f4e8ecb6256af631ff381381a3dd
ASoC: jz4740-i2s: Simplify using regmap fields

The differences between register fields on different SoC versions
can be abstracted away using the regmap field API. This is easier
to understand and extend than comparisons based on the version ID.
Since the version IDs are unused after this change, remove them at
the same time, and remove unused macros.

Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20221023143328.160866-4-aidanmacdonald.0x0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/jz4740/jz4740-i2s.c