Date:2012-05-08 18:46:36 (8 years 26 days ago)
Author:Mark Brown
Commit:c21575fc47d29346d11d0f27d7f3be6cd0d39a47
Message:ASoC: io: Use dev_get_regmap() if driver doesn't provide a regmap

Less error prone and one less line of code in drivers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Files: sound/soc/soc-io.c (1 diff)

Change Details

sound/soc/soc-io.c
142142    case SND_SOC_REGMAP:
143143        /* Device has made its own regmap arrangements */
144144        codec->using_regmap = true;
145        if (!codec->control_data)
146            codec->control_data = dev_get_regmap(codec->dev, NULL);
145147
146148        ret = regmap_get_val_bytes(codec->control_data);
147149        /* Errors are legitimate for non-integer byte multiples */

Archive Download the corresponding diff file



interactive