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

extcon: arizona: Use DAPM mutex helper functions

We should be using the helper functions to lock the DAPM mutex not
accessing it directly. There are no ill effects of this as the moment
but it is best practice, and the implementation could be changed in the
future.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Charles Keepax and committed by
Chanwoo Choi
03bf1adb 8b45b6a0

+2 -2
+2 -2
drivers/extcon/extcon-arizona.c
··· 185 185 break; 186 186 }; 187 187 188 - mutex_lock(&arizona->dapm->card->dapm_mutex); 188 + snd_soc_dapm_mutex_lock(arizona->dapm); 189 189 190 190 arizona->hpdet_clamp = clamp; 191 191 ··· 227 227 ret); 228 228 } 229 229 230 - mutex_unlock(&arizona->dapm->card->dapm_mutex); 230 + snd_soc_dapm_mutex_unlock(arizona->dapm); 231 231 } 232 232 233 233 static void arizona_extcon_set_mode(struct arizona_extcon_info *info, int mode)