]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jun 2022 09:56:26 +0000 (10:56 +0100)
commit57ee327c685183660bcf1e3994db3b66da21a0e5
tree20790113031654e323e3c8c5148547acb5da7386
parent7c93b6d7ff2c07940a15c7437237a1a03959662d
ASoC: samsung: change gpiod_speaker_power and rx1950_audio from global to static variables

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: 873be31a6e71 ("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>
sound/soc/samsung/rx1950_uda1380.c