]> git.baikalelectronics.ru Git - kernel.git/commit
ASOC: tpa6130a2: add static qualifier for file local symbols
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 26 Sep 2016 22:45:11 +0000 (07:45 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 27 Sep 2016 16:12:17 +0000 (09:12 -0700)
commit720ba9e143693b3b5687b3c9f45042a7043b9d87
treeba074c7e66d4961f5b62559ce4bd145832b60287
parent91cac5b5b2d61c1f1cfe2f20d8b8434f317d60b1
ASOC: tpa6130a2: add static qualifier for file local symbols

Sparse reports a below warning.

tpa6130a2.c:193:33: warning: symbol 'tpa6130a2_component_driver' was not declared. Should it be static?

The symbol is just used inner the file. Forthermore, it's constant. Thus,
it's better to add static and const qualifier.

This commit adds it.

Fixes: 99dd5280fa1c (ASoC: tpa6130a2: Register component)
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tpa6130a2.c