]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: samsung: change gpiod_speaker_power and rx1950_audio from global to static...
authorTom Rix <trix@redhat.com>
Wed, 29 Jun 2022 18:53:45 +0000 (14:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:16:06 +0000 (15:16 +0200)
commitd94a552183c0fde0c65ebdf5ed74bd9fb1dc55c4
tree71eb0897ef82a77a662c526d6fbe369d13cf4686
parent875b2bf469d094754ac2ba9af91dcd529eb12bf6
ASoC: samsung: change gpiod_speaker_power and rx1950_audio from global to static variables

[ Upstream commit d2294461b90e0c5b3bbfaaf2c8baff4fd3e2bb13 ]

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: 83d74e354200 ("ASoC: samsung: rx1950: turn into platform driver")
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220629185345.910406-1-trix@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/samsung/rx1950_uda1380.c