提交 8b974017 编写于 作者: A Arnd Bergmann

ARM: davinci: don't mark vpif_input structures as 'const'

A change to the platform data definitions caused a warning in the board code:

arch/arm/mach-davinci/board-da850-evm.c:1221:13: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
arch/arm/mach-davinci/board-da850-evm.c:1231:13: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]

This is a bit unfortunate, since we generally like structure definitions to
be const, but as this is legacy code, the easiest way out is still to
remove the 'const' annotation here.

Fixes: 4a5f8ae5 ("[media] davinci: vpif_capture: get subdevs from DT when available")
Fixes: 231ce279 ("ARM: davinci: fix const warnings")
Acked-by: NSekhar Nori <nsekhar@ti.com>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 fe89168c
...@@ -1166,7 +1166,7 @@ static struct tvp514x_platform_data tvp5146_pdata = { ...@@ -1166,7 +1166,7 @@ static struct tvp514x_platform_data tvp5146_pdata = {
#define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL) #define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL)
static const struct vpif_input da850_ch0_inputs[] = { static struct vpif_input da850_ch0_inputs[] = {
{ {
.input = { .input = {
.index = 0, .index = 0,
...@@ -1181,7 +1181,7 @@ static const struct vpif_input da850_ch0_inputs[] = { ...@@ -1181,7 +1181,7 @@ static const struct vpif_input da850_ch0_inputs[] = {
}, },
}; };
static const struct vpif_input da850_ch1_inputs[] = { static struct vpif_input da850_ch1_inputs[] = {
{ {
.input = { .input = {
.index = 0, .index = 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册