diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-14 11:53:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:24 -0500 |
commit | 971e8298dee4835fc2dfbd207a9786702aa01666 (patch) | |
tree | be01801dd5631acc72eae7c16abbf1b834c66775 /include/media/ir-common.h | |
parent | 3f831107ed8efc32960e0cd172799bb82f6c81c9 (diff) |
V4L/DVB (13680): ir: use unsigned long instead of enum
When preparing the linux-next patches, I got those errors:
include/media/ir-core.h:29: warning: left shift count >= width of type
In file included from include/media/ir-common.h:29,
from drivers/media/video/ir-kbd-i2c.c:50:
drivers/media/video/ir-kbd-i2c.c: In function ‘ir_probe’:
drivers/media/video/ir-kbd-i2c.c:324: warning: left shift count >= width of type
Unfortunately, enum is 32 bits on i386. As we define IR_TYPE_OTHER as 1<<63,
it won't work on non 64 bits arch.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r-- | include/media/ir-common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 1b43b772165a..015db75b42f6 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | struct ir_input_state { | 36 | struct ir_input_state { |
37 | /* configuration */ | 37 | /* configuration */ |
38 | enum ir_type ir_type; | 38 | u64 ir_type; |
39 | 39 | ||
40 | /* key info */ | 40 | /* key info */ |
41 | u32 ir_key; /* ir scancode */ | 41 | u32 ir_key; /* ir scancode */ |
@@ -84,7 +84,7 @@ struct card_ir { | |||
84 | /* Routines from ir-functions.c */ | 84 | /* Routines from ir-functions.c */ |
85 | 85 | ||
86 | int ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | 86 | int ir_input_init(struct input_dev *dev, struct ir_input_state *ir, |
87 | const enum ir_type ir_type); | 87 | const u64 ir_type); |
88 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir); | 88 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir); |
89 | void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir, | 89 | void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir, |
90 | u32 ir_key); | 90 | u32 ir_key); |