ASoC: tas2562: Fix misuse of GENMASK macro
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 15 Oct 2019 20:09:00 +0000 (22:09 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 18 Oct 2019 17:10:29 +0000 (18:10 +0100)
Arguments are supposed to be ordered high then low.

Fixes: c173dba44c2d ("ASoC: tas2562: Introduce the TAS2562 amplifier")
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20191015200900.25798-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.h

index 60f2bb1d198be2556af87e300b03cfdd99ac9852..62e659ab786d9fac5ac365cda36f49eeb4130ced 100644 (file)
@@ -62,7 +62,7 @@
 
 #define TAS2562_TDM_CFG2_RIGHT_JUSTIFY BIT(6)
 
-#define TAS2562_TDM_CFG2_RXLEN_MASK    GENMASK(0, 1)
+#define TAS2562_TDM_CFG2_RXLEN_MASK    GENMASK(1, 0)
 #define TAS2562_TDM_CFG2_RXLEN_16B     0x0
 #define TAS2562_TDM_CFG2_RXLEN_24B     BIT(0)
 #define TAS2562_TDM_CFG2_RXLEN_32B     BIT(1)