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>
Mon, 18 Mar 2019 06:57:58 +0000 (07:57 +0100)
commitae0a6d2017f733781dcc938a471ccc2d05f9bee6
treea68321c93cb7c0f895492582bf2765566b6861c3
parentbafd9c64056cd034a1174dcadb65cd3b294ff8f6
staging: olpc_dcon_xo_1: add missing 'const' qualifier

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