[alsa-devel] [PATCH 086/102] ASoC: max9877: Use SOC_ENUM_SINGLE_CONST()
Takashi Iwai
tiwai at suse.de
Tue Feb 18 12:51:32 CET 2014
... for improving readability and maintainability.
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
sound/soc/codecs/max9877.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/max9877.c b/sound/soc/codecs/max9877.c
index 29549cdbf4c1..8702bc69a449 100644
--- a/sound/soc/codecs/max9877.c
+++ b/sound/soc/codecs/max9877.c
@@ -63,10 +63,10 @@ static const char *max9877_osc_mode[] = {
};
static const struct soc_enum max9877_enum[] = {
- SOC_ENUM_SINGLE(MAX9877_OUTPUT_MODE, 0, ARRAY_SIZE(max9877_out_mode),
- max9877_out_mode),
- SOC_ENUM_SINGLE(MAX9877_OUTPUT_MODE, MAX9877_OSC_OFFSET,
- ARRAY_SIZE(max9877_osc_mode), max9877_osc_mode),
+ SOC_ENUM_SINGLE_CONST(MAX9877_OUTPUT_MODE, 0,
+ max9877_out_mode),
+ SOC_ENUM_SINGLE_CONST(MAX9877_OUTPUT_MODE, MAX9877_OSC_OFFSET,
+ max9877_osc_mode),
};
static const struct snd_kcontrol_new max9877_controls[] = {
--
1.8.5.2
More information about the Alsa-devel
mailing list