diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-30 09:58:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-30 10:06:35 -0500 |
commit | 9804ed9e840c461f88b290dea43173e3eed37102 (patch) | |
tree | a4e1d82d52d7c8cf3612290367506142c448c7cc /drivers | |
parent | abfd013b665d21f57bc4b2e455b23c4cece0df9f (diff) |
[media] ivtv-i2c: Fix two warnings
Fix two gcc warnings:
drivers/media/video/ivtv/ivtv-i2c.c:170: warning: cast from pointer to integer of different size
drivers/media/video/ivtv/ivtv-i2c.c:171: warning: cast from pointer to integer of different size
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
They seem bogus, but, as the original code also has problems with
LE/BE, just change its implementation to be clear.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c index 2bed4309c16b..e103b8fc7452 100644 --- a/drivers/media/video/ivtv/ivtv-i2c.c +++ b/drivers/media/video/ivtv/ivtv-i2c.c | |||
@@ -167,8 +167,8 @@ static int get_key_adaptec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw) | |||
167 | keybuf[2] &= 0x7f; | 167 | keybuf[2] &= 0x7f; |
168 | keybuf[3] |= 0x80; | 168 | keybuf[3] |= 0x80; |
169 | 169 | ||
170 | *ir_key = (u32) keybuf; | 170 | *ir_key = keybuf[3] | keybuf[2] << 8 | keybuf[1] << 16 |keybuf[0] << 24; |
171 | *ir_raw = (u32) keybuf; | 171 | *ir_raw = *ir_key; |
172 | 172 | ||
173 | return 1; | 173 | return 1; |
174 | } | 174 | } |