mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 20:51:47 +00:00
ASoC: ad1836: Use SOC_ENUM_SINGLE_DECL()
Just replace with the helper macro. No functional change at all. Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
38dbfb59d1
commit
2e86434f9e
@ -40,8 +40,8 @@ struct ad1836_priv {
|
||||
*/
|
||||
static const char *ad1836_deemp[] = {"None", "44.1kHz", "32kHz", "48kHz"};
|
||||
|
||||
static const struct soc_enum ad1836_deemp_enum =
|
||||
SOC_ENUM_SINGLE(AD1836_DAC_CTRL1, 8, 4, ad1836_deemp);
|
||||
static SOC_ENUM_SINGLE_DECL(ad1836_deemp_enum,
|
||||
AD1836_DAC_CTRL1, 8, ad1836_deemp);
|
||||
|
||||
#define AD1836_DAC_VOLUME(x) \
|
||||
SOC_DOUBLE_R("DAC" #x " Playback Volume", AD1836_DAC_L_VOL(x), \
|
||||
|
Loading…
Reference in New Issue
Block a user