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

Documentation: fix the now deprecated reference to {set,reset}_scoop_gpio

Due to recent patches removing the now deprecated references to
{set,reset}_scoop_gpio() and converting them to the generic GPIO
API, the references in the documentation also need to be fixed.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Cc: Liam Girdwood <lrg@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Eric Miao and committed by
Russell King
fec12a62 ff7a4c71

+2 -10
+2 -10
Documentation/sound/alsa/soc/dapm.txt
··· 135 135 136 136 static int spitz_mic_bias(struct snd_soc_dapm_widget* w, int event) 137 137 { 138 - if(SND_SOC_DAPM_EVENT_ON(event)) 139 - set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_MIC_BIAS); 140 - else 141 - reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_MIC_BIAS); 142 - 138 + gpio_set_value(SPITZ_GPIO_MIC_BIAS, SND_SOC_DAPM_EVENT_ON(event)); 143 139 return 0; 144 140 } 145 141 ··· 265 269 /* turn speaker amplifier on/off depending on use */ 266 270 static int corgi_amp_event(struct snd_soc_dapm_widget *w, int event) 267 271 { 268 - if (SND_SOC_DAPM_EVENT_ON(event)) 269 - set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_APM_ON); 270 - else 271 - reset_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_APM_ON); 272 - 272 + gpio_set_value(CORGI_GPIO_APM_ON, SND_SOC_DAPM_EVENT_ON(event)); 273 273 return 0; 274 274 } 275 275