Commit ceb8a12f authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

drivers/fsi: fix fsi_slave_mode prototype

gcc warns about the return type of this function:

drivers/fsi/fsi-core.c:535:8: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]

This removes the 'const' attribute, as suggested by the warning.

Fixes: 2b37c3e2 ("drivers/fsi: Set slave SMODE to init communication")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 496f8931
...@@ -532,7 +532,7 @@ static inline uint32_t fsi_smode_sid(int x) ...@@ -532,7 +532,7 @@ static inline uint32_t fsi_smode_sid(int x)
return (x & FSI_SMODE_SID_MASK) << FSI_SMODE_SID_SHIFT; return (x & FSI_SMODE_SID_MASK) << FSI_SMODE_SID_SHIFT;
} }
static const uint32_t fsi_slave_smode(int id) static uint32_t fsi_slave_smode(int id)
{ {
return FSI_SMODE_WSC | FSI_SMODE_ECRC return FSI_SMODE_WSC | FSI_SMODE_ECRC
| fsi_smode_sid(id) | fsi_smode_sid(id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment