Skip to content

Commit ceb8a12

Browse files
arndbgregkh
authored andcommitted
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: 2b37c3e ("drivers/fsi: Set slave SMODE to init communication") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 496f893 commit ceb8a12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/fsi/fsi-core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ static inline uint32_t fsi_smode_sid(int x)
532532
return (x & FSI_SMODE_SID_MASK) << FSI_SMODE_SID_SHIFT;
533533
}
534534

535-
static const uint32_t fsi_slave_smode(int id)
535+
static uint32_t fsi_slave_smode(int id)
536536
{
537537
return FSI_SMODE_WSC | FSI_SMODE_ECRC
538538
| fsi_smode_sid(id)

0 commit comments

Comments
 (0)