summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-04-07 13:55:53 +0200
committerMark Brown <broonie@kernel.org>2023-04-07 18:23:08 +0200
commit672029caa5708934817a331f3323bbe48d456c5c (patch)
treeb62a03cfcc867a55fcbc39b26f46c1d1c96396eb /sound/soc/mediatek
parentASoC: SOF: Intel: hda-dai: Print the format_val as hexadecimal number (diff)
downloadlinux-672029caa5708934817a331f3323bbe48d456c5c.tar.xz
linux-672029caa5708934817a331f3323bbe48d456c5c.zip
ASoC: mediatek: mt8186: set variable aud_pinctrl to static
smatch reports sound/soc/mediatek/mt8186/mt8186-afe-gpio.c:14:16: warning: symbol 'aud_pinctrl' was not declared. Should it be static? This variable is only used in one file so should be static. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230407115553.1968111-1-trix@redhat.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek')
-rw-r--r--sound/soc/mediatek/mt8186/mt8186-afe-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c b/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
index 20b9f5d810ec..f12e91cc4fcf 100644
--- a/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
+++ b/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
@@ -11,7 +11,7 @@
#include "mt8186-afe-common.h"
#include "mt8186-afe-gpio.h"
-struct pinctrl *aud_pinctrl;
+static struct pinctrl *aud_pinctrl;
enum mt8186_afe_gpio {
MT8186_AFE_GPIO_CLK_MOSI_OFF,