]> git.ipfire.org Git - people/arne_f/kernel.git/commit
staging: olpc_dcon_xo_1: add missing 'const' qualifier
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2019 19:42:33 +0000 (20:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:27:32 +0000 (06:27 +0200)
commitde6283bc5cafe7ba95e7fdfb1cc68547b152fdf8
tree567b6d279da6ab3aefb887c8c04d5f5fed41f786
parentda418a0b0963b7899a60a8fe5754da2f08b50aac
staging: olpc_dcon_xo_1: add missing 'const' qualifier

commit ae0a6d2017f733781dcc938a471ccc2d05f9bee6 upstream.

gcc noticed a mismatch between the type qualifiers after a recent
cleanup:

drivers/staging/olpc_dcon/olpc_dcon_xo_1.c: In function 'dcon_init_xo_1':
drivers/staging/olpc_dcon/olpc_dcon_xo_1.c:48:26: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Add the 'const' keyword that should have been there all along.

Fixes: 2159fb372929 ("staging: olpc_dcon: olpc_dcon_xo_1.c: Switch to the gpio descriptor interface")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon_xo_1.c