ASoC: cs42xx8: Make of match table static
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 19 Jun 2014 07:40:28 +0000 (09:40 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 19:58:19 +0000 (20:58 +0100)
The cs42xx8_of_match table is not used outside of the driver, hence it can and
should be made static.

Fixes the following warning from sparse:
sound/soc/codecs/cs42xx8.c:425:27: warning: symbol 'cs42xx8_of_match' was
not declared. Should it be static?

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/cs42xx8.c

index a25bc6061a3093f9884f716e26c5543c21a2765c..ec53ffc4d8cedf1daf3d959b6ba0a8d64ad0ec4a 100644 (file)
@@ -422,7 +422,7 @@ const struct cs42xx8_driver_data cs42888_data = {
 };
 EXPORT_SYMBOL_GPL(cs42888_data);
 
-const struct of_device_id cs42xx8_of_match[] = {
+static const struct of_device_id cs42xx8_of_match[] = {
        { .compatible = "cirrus,cs42448", .data = &cs42448_data, },
        { .compatible = "cirrus,cs42888", .data = &cs42888_data, },
        { /* sentinel */ }