Skip to content

Commit

Permalink
drm/imx: tve remove extraneous type qualifier
Browse files Browse the repository at this point in the history
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: fcbc51e ("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>
  • Loading branch information
Arnd Bergmann authored and Philipp Zabel committed Oct 27, 2020
1 parent acbb7f1 commit 36fba36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/imx/imx-tve.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ static const char * const imx_tve_modes[] = {
[TVE_MODE_VGA] = "vga",
};

static const int of_get_tve_mode(struct device_node *np)
static int of_get_tve_mode(struct device_node *np)
{
const char *bm;
int ret, i;
Expand Down

0 comments on commit 36fba36

Please sign in to comment.