]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: pcm1681/pcm1791: fix typo in declaration
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Jun 2016 15:39:45 +0000 (17:39 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2016 16:45:18 +0000 (17:45 +0100)
gcc -Wextra warns about an obvious but harmless typo in the
pcm1681_writeable_reg function, which has an extra 'register
keyword', and in pcm179x, which has a second copy of that
declaration:

sound/soc/codecs/pcm1681.c:76:42: error: 'register' is not at beginning of declaration [-Werror=old-style-declaration]
sound/soc/codecs/pcm179x.c:62:42: error: 'register' is not at beginning of declaration [-Werror=old-style-declaration]

For consistency with the rest of the file, I'm changing this from
'unsigned register' to 'unsigned int', which has the same meaning
but causes no warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm1681.c
sound/soc/codecs/pcm179x.c

index 58325234285c779c8c566486383dda6267795dec..33e1fc2d1598bcc0a0f19647644663c9035facfe 100644 (file)
@@ -73,7 +73,7 @@ static bool pcm1681_accessible_reg(struct device *dev, unsigned int reg)
        return !((reg == 0x00) || (reg == 0x0f));
 }
 
-static bool pcm1681_writeable_reg(struct device *dev, unsigned register reg)
+static bool pcm1681_writeable_reg(struct device *dev, unsigned int reg)
 {
        return pcm1681_accessible_reg(dev, reg) &&
                (reg != PCM1681_ZERO_DETECT_STATUS);
index 06a66579ca6d34964044c0ac297333a805b2a3c3..88fbdd184aa0a5b6d2e6e5a757738e8442a8b0d0 100644 (file)
@@ -59,7 +59,7 @@ static bool pcm179x_accessible_reg(struct device *dev, unsigned int reg)
        return reg >= 0x10 && reg <= 0x17;
 }
 
-static bool pcm179x_writeable_reg(struct device *dev, unsigned register reg)
+static bool pcm179x_writeable_reg(struct device *dev, unsigned int reg)
 {
        bool accessible;