Commit 9bc1022f authored by Shuah Khan's avatar Shuah Khan Committed by Mauro Carvalho Chehab

[media] media: fix au0828 compile error from au0828_boards initialization

au0828 picked up UNSET from videobuf-core.h and fails to compile
if videobuf-core.h isn't included. Change it to use -1U instead
to fix the problem.

    drivers/media/usb/au0828/au0828-cards.c:47:17: error: ‘UNSET’ undeclared here (not in a function)
       .tuner_type = UNSET,
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 7559d13c
...@@ -44,7 +44,7 @@ static void hvr950q_cs5340_audio(void *priv, int enable) ...@@ -44,7 +44,7 @@ static void hvr950q_cs5340_audio(void *priv, int enable)
struct au0828_board au0828_boards[] = { struct au0828_board au0828_boards[] = {
[AU0828_BOARD_UNKNOWN] = { [AU0828_BOARD_UNKNOWN] = {
.name = "Unknown board", .name = "Unknown board",
.tuner_type = UNSET, .tuner_type = -1U,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
}, },
[AU0828_BOARD_HAUPPAUGE_HVR850] = { [AU0828_BOARD_HAUPPAUGE_HVR850] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment