diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-19 00:32:52 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-24 13:31:03 -0400 |
commit | 80deaf09cb3fb3939c1d2b84610ae411cd7c6001 (patch) | |
tree | 3492dd59a7ad68b370cd3a5b4f2f97c0a1fc16a4 | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) |
ASoC: cs4265: CS4265_INT_STATUS is readable register
CS4265_INT_STATUS was missed in cs4265_readable_register, fix it.
The register 0x01 ~ 0x12 are readable, use
CS4265_CHIP_ID ... CS4265_SPDIF_CTL2 syntax for better readability.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/cs4265.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index d7ec4756e45b..688c5007d157 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c | |||
@@ -60,23 +60,7 @@ static const struct reg_default cs4265_reg_defaults[] = { | |||
60 | static bool cs4265_readable_register(struct device *dev, unsigned int reg) | 60 | static bool cs4265_readable_register(struct device *dev, unsigned int reg) |
61 | { | 61 | { |
62 | switch (reg) { | 62 | switch (reg) { |
63 | case CS4265_PWRCTL: | 63 | case CS4265_CHIP_ID ... CS4265_SPDIF_CTL2: |
64 | case CS4265_DAC_CTL: | ||
65 | case CS4265_ADC_CTL: | ||
66 | case CS4265_MCLK_FREQ: | ||
67 | case CS4265_SIG_SEL: | ||
68 | case CS4265_CHB_PGA_CTL: | ||
69 | case CS4265_CHA_PGA_CTL: | ||
70 | case CS4265_ADC_CTL2: | ||
71 | case CS4265_DAC_CHA_VOL: | ||
72 | case CS4265_DAC_CHB_VOL: | ||
73 | case CS4265_DAC_CTL2: | ||
74 | case CS4265_SPDIF_CTL1: | ||
75 | case CS4265_SPDIF_CTL2: | ||
76 | case CS4265_INT_MASK: | ||
77 | case CS4265_STATUS_MODE_MSB: | ||
78 | case CS4265_STATUS_MODE_LSB: | ||
79 | case CS4265_CHIP_ID: | ||
80 | return true; | 64 | return true; |
81 | default: | 65 | default: |
82 | return false; | 66 | return false; |