]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: tve remove extraneous type qualifier
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 19:41:02 +0000 (20:41 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 27 Oct 2020 09:30:09 +0000 (10:30 +0100)
commitc71fdad826ffa0e8fac5479d1f5ae137dff9499f
treec584b980968f85021f2b14c12a5683791c90f1ec
parentf09256d32cd015d959c16c5c9a84d37bbb4aa9f0
drm/imx: tve remove extraneous type qualifier

clang warns about functions returning a 'const int' result:

drivers/gpu/drm/imx/imx-tve.c:487:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

Remove the extraneous 'const' qualifier here. I would guess that the
function was intended to be marked __attribute__((const)) instead,
but that would also be wrong since it call other functions without
that attribute.

Fixes: f1773dc88dd7 ("staging: drm/imx: Add support for Television Encoder (TVEv2)")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-tve.c