mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 21:56:39 +07:00
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>
This commit is contained in:
parent
c4a2f5beb7
commit
cb73b40e59
@ -999,7 +999,7 @@ static const char *atmel_lcdfb_wiring_modes[] = {
|
||||
[ATMEL_LCDC_WIRING_RGB] = "RGB",
|
||||
};
|
||||
|
||||
const int atmel_lcdfb_get_of_wiring_modes(struct device_node *np)
|
||||
static int atmel_lcdfb_get_of_wiring_modes(struct device_node *np)
|
||||
{
|
||||
const char *mode;
|
||||
int err, i;
|
||||
|
Loading…
Reference in New Issue
Block a user