Skip to content
  • Kuninori Morimoto's avatar
    ASoC: add snd_soc_component_read32 · 738b49ef
    Kuninori Morimoto authored
    
    
    Current codec drivers are using snd_soc_read(). It will be replaced
    into snd_soc_component_read(), but these 2 are using different style.
    For example, it will be
    
    	- val = snd_soc_read(xxx, reg);
    	+ ret = snd_soc_component_read(xxx, reg, &val);
    	+ if (ret < 0) {
    	+	...
    	+ }
    
    To more smooth replace, let's add snd_soc_component_read32
    which is copied from snd_soc_read()
    
    	- val = snd_soc_read(xxx, reg);
    	+ val = snd_soc_component_read32(xxx, reg);
    
    Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    738b49ef