V4L/DVB (8479): tveeprom/ivtv: fix usage of has_ir field
has_ir was set to and compared to -1 in several cases, even though it is an u32. ivtv also contained a FIXME for an old kernel that could be removed. Thanks to Roel Kluin for creating an initial patch for this. Although I chose a different solution here it did help in pointing out the problem. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
38f9d30859
commit
b654fcdc0e
@@ -3,7 +3,12 @@
|
||||
|
||||
struct tveeprom {
|
||||
u32 has_radio;
|
||||
u32 has_ir; /* bit 0: IR receiver present, bit 1: IR transmitter (blaster) present. -1 == unknown */
|
||||
/* If has_ir == 0, then it is unknown what the IR capabilities are,
|
||||
otherwise:
|
||||
bit 0: 1 (= IR capabilities are known)
|
||||
bit 1: IR receiver present
|
||||
bit 2: IR transmitter (blaster) present */
|
||||
u32 has_ir;
|
||||
u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */
|
||||
|
||||
u32 tuner_type;
|
||||
|
Reference in New Issue
Block a user