]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commita074ae0ed68385ee403e4247ce8274705fe9c4e0
tree5ff92fa4d33f51950df589c304b06fe7e51d5f77
parent1a695a905c18548062509178b98bc91e67510864
ASoC: pcm1681/pcm1791: fix typo in declaration

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