]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: es8328: Remove some unused defines
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 15 Oct 2016 19:17:16 +0000 (21:17 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2016 17:40:11 +0000 (18:40 +0100)
The es8328 drivers seems to have used the wm8753 driver as a template. Its
header file contains a few defines that are copied verbatim from the wm8753
header that do not really apply to this driver and are unused. So remove
those defines. This seems safe as they deal with PLL and clock divider
settings and the es8328 driver neither implements a set_pll() nor a
set_clkdiv() callback.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.h

index 1a736e72a929999d3117a154cf8bc99188f2332e..8930322d712b7a60def8148c3cceab7a17a03f22 100644 (file)
@@ -278,43 +278,6 @@ int es8328_probe(struct device *dev, struct regmap *regmap);
 
 #define ES8328_REG_MAX         0x35
 
-#define ES8328_PLL1            0
-#define ES8328_PLL2            1
-
-/* clock inputs */
-#define ES8328_MCLK            0
-#define ES8328_PCMCLK          1
-
-/* clock divider id's */
-#define ES8328_PCMDIV          0
-#define ES8328_BCLKDIV         1
-#define ES8328_VXCLKDIV                2
-
-/* PCM clock dividers */
-#define ES8328_PCM_DIV_1       (0 << 6)
-#define ES8328_PCM_DIV_3       (2 << 6)
-#define ES8328_PCM_DIV_5_5     (3 << 6)
-#define ES8328_PCM_DIV_2       (4 << 6)
-#define ES8328_PCM_DIV_4       (5 << 6)
-#define ES8328_PCM_DIV_6       (6 << 6)
-#define ES8328_PCM_DIV_8       (7 << 6)
-
-/* BCLK clock dividers */
-#define ES8328_BCLK_DIV_1      (0 << 7)
-#define ES8328_BCLK_DIV_2      (1 << 7)
-#define ES8328_BCLK_DIV_4      (2 << 7)
-#define ES8328_BCLK_DIV_8      (3 << 7)
-
-/* VXCLK clock dividers */
-#define ES8328_VXCLK_DIV_1     (0 << 6)
-#define ES8328_VXCLK_DIV_2     (1 << 6)
-#define ES8328_VXCLK_DIV_4     (2 << 6)
-#define ES8328_VXCLK_DIV_8     (3 << 6)
-#define ES8328_VXCLK_DIV_16    (4 << 6)
-
-#define ES8328_DAI_HIFI                0
-#define ES8328_DAI_VOICE       1
-
 #define ES8328_1536FS          1536
 #define ES8328_1024FS          1024
 #define ES8328_768FS           768