[PATCH 01/16] ASoC: soc-component: merge snd_soc_component_read() and snd_soc_component_read32()

Mark Brown broonie at kernel.org
Fri Jun 19 18:17:37 CEST 2020


On Tue, Jun 16, 2020 at 02:19:41PM +0900, Kuninori Morimoto wrote:

> -	snd_soc_component_read(component, PW_MGMT1, &mgmt1);
> -	snd_soc_component_read(component, PW_MGMT3, &mgmt3);
> +	mgmt1 = snd_soc_component_read(component, PW_MGMT1);
> +	mgmt3 = snd_soc_component_read(component, PW_MGMT3);

It's a bit sad that we're loosing the possibility of error handling with
this stuff, but OTOH looking at how much useful error handling we're
actually doing here it's hard to argue that it's much of a loss.  Ho
hum.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20200619/ad80a4cb/attachment.sig>


More information about the Alsa-devel mailing list