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

video: fbdev: atmel: fix warning for const return value

A const on a return value is meaningless and generates a warning on some
versions of gcc:

drivers/video/fbdev/atmel_lcdfb.c:1003: warning: type qualifiers ignored on function return type

The function in question is only used inside the .c file, so the author
of the code most likely means "static" instead of "const".

Change the const to static.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

+1 -1
+1 -1
drivers/video/fbdev/atmel_lcdfb.c
··· 999 999 [ATMEL_LCDC_WIRING_RGB] = "RGB", 1000 1000 }; 1001 1001 1002 - const int atmel_lcdfb_get_of_wiring_modes(struct device_node *np) 1002 + static int atmel_lcdfb_get_of_wiring_modes(struct device_node *np) 1003 1003 { 1004 1004 const char *mode; 1005 1005 int err, i;