ASoC: jz4740-i2s: Use FIELD_PREP() macros in hw_params callback
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Sun, 23 Oct 2022 14:33:23 +0000 (15:33 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:18:16 +0000 (14:18 +0100)
commitb355ebebb17c438b90c3d339f38a79559f7259df
tree60c6b2c94aab73f4e00fa9e750a3be3aee48fa51
parent0fddb4bce669fd255f6ffade6905da5c8ed3e254
ASoC: jz4740-i2s: Use FIELD_PREP() macros in hw_params callback

Get rid of a couple of macros and improve readability by using
FIELD_PREP() and GENMASK() for the sample size setting.

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