Commit a9e97b22 authored by Tom Rix's avatar Tom Rix Committed by Zheng Zengkai
Browse files

ASoC: samsung: change gpiod_speaker_power and rx1950_audio from global to static variables

stable inclusion
from stable-v5.10.137
commit d94a552183c0fde0c65ebdf5ed74bd9fb1dc55c4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d94a552183c0fde0c65ebdf5ed74bd9fb1dc55c4



--------------------------------

[ Upstream commit d2294461 ]

sparse reports
sound/soc/samsung/rx1950_uda1380.c:131:18: warning: symbol 'gpiod_speaker_power' was not declared. Should it be static?
sound/soc/samsung/rx1950_uda1380.c:231:24: warning: symbol 'rx1950_audio' was not declared. Should it be static?

Both gpiod_speaker_power and rx1950_audio are only used in rx1950_uda1380.c,
so their storage class specifiers should be static.

Fixes: 83d74e35 ("ASoC: samsung: rx1950: turn into platform driver")
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220629185345.910406-1-trix@redhat.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent caba8a04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment