[alsa-devel] [PATCH] [v2] ASoC: let snd_soc_update_bits() return an error code

Liam Girdwood lrg at slimlogic.co.uk
Tue Jan 11 11:51:21 CET 2011


On Mon, 2011-01-10 at 15:58 -0600, Timur Tabi wrote:
> Update snd_soc_update_bits() so that it returns a negative error code if the
> the read or write operation fails.
> 
> Note that currently, a lot of the lower-level read functions have an unsigned
> integer return type (and some of them even try to return a negative number),
> but this code still appears to work in those cases.
> 
> An examination of the code shows that all current callers are compatible with
> this change.
> 
> Signed-off-by: Timur Tabi <timur at freescale.com>

Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



More information about the Alsa-devel mailing list