Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: ak4671: Convert to table based control init

Saves code and adds error handling.

Signed-off-by: Mark Brown <broonie@linaro.org>

+2 -3
+2 -3
sound/soc/codecs/ak4671.c
··· 628 628 return ret; 629 629 } 630 630 631 - snd_soc_add_codec_controls(codec, ak4671_snd_controls, 632 - ARRAY_SIZE(ak4671_snd_controls)); 633 - 634 631 ak4671_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 635 632 636 633 return ret; ··· 643 646 .probe = ak4671_probe, 644 647 .remove = ak4671_remove, 645 648 .set_bias_level = ak4671_set_bias_level, 649 + .controls = ak4671_snd_controls, 650 + .num_controls = ARRAY_SIZE(ak4671_snd_controls), 646 651 .reg_cache_size = AK4671_CACHEREGNUM, 647 652 .reg_word_size = sizeof(u8), 648 653 .reg_cache_default = ak4671_reg,