]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: max98926: make max98926_spk_tlv and max98926_current_tlv static
authorColin Ian King <colin.king@canonical.com>
Sun, 13 Aug 2017 15:00:33 +0000 (16:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:13:29 +0000 (17:13 +0100)
max98926_spk_tlv and max98926_current_tlv are local to the source and do
not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'max98926_spk_tlv' was not declared. Should it be static?
symbol 'max98926_current_tlv' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98926.c

index f16145d8ee6b5278c6dad34218e9a47e41b2a8f6..13d2708657e1658044cb1b49bdd3fbd63d4c4b56 100644 (file)
@@ -213,8 +213,8 @@ static bool max98926_readable_register(struct device *dev, unsigned int reg)
        }
 };
 
-DECLARE_TLV_DB_SCALE(max98926_spk_tlv, -600, 100, 0);
-DECLARE_TLV_DB_RANGE(max98926_current_tlv,
+static DECLARE_TLV_DB_SCALE(max98926_spk_tlv, -600, 100, 0);
+static DECLARE_TLV_DB_RANGE(max98926_current_tlv,
        0, 11, TLV_DB_SCALE_ITEM(20, 20, 0),
        12, 15, TLV_DB_SCALE_ITEM(320, 40, 0),
 );