Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: fcbc51e54d2a ("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>

authored by

Arnd Bergmann and committed by
Philipp Zabel
36fba366 acbb7f14

+1 -1
+1 -1
drivers/gpu/drm/imx/imx-tve.c
··· 484 484 [TVE_MODE_VGA] = "vga", 485 485 }; 486 486 487 - static const int of_get_tve_mode(struct device_node *np) 487 + static int of_get_tve_mode(struct device_node *np) 488 488 { 489 489 const char *bm; 490 490 int ret, i;