]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: arizona: Fix type of clock rate pointer in arizona_set_sysclk
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 3 Dec 2015 18:15:07 +0000 (18:15 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 3 Dec 2015 20:35:21 +0000 (20:35 +0000)
Both the sysclk and asyncclk members of arizona_priv are signed by we
refer to them through an unsigned pointer. This patch fixes this small
harmless error.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c

index d2731cf439c619746d3676bd86366f7d4c8b9b82..d90b3c51019a1dc37c208acf70d56471f46eb2c2 100644 (file)
@@ -1214,7 +1214,7 @@ int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id,
        unsigned int reg;
        unsigned int mask = ARIZONA_SYSCLK_FREQ_MASK | ARIZONA_SYSCLK_SRC_MASK;
        unsigned int val = source << ARIZONA_SYSCLK_SRC_SHIFT;
-       unsigned int *clk;
+       int *clk;
 
        switch (clk_id) {
        case ARIZONA_CLK_SYSCLK: