mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[media] tda10086: change typecast to u64 to avoid smatch warnings
drivers/media/dvb-frontends/tda10086.c:476 tda10086_get_frontend() warn: should 'tda10086_read_byte(state, 81) << 8' be a 64 bit type? Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
05a848ecbb
commit
b674ac290e
@ -472,8 +472,8 @@ static int tda10086_get_frontend(struct dvb_frontend *fe)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* calculate the updated frequency (note: we convert from Hz->kHz) */
|
/* calculate the updated frequency (note: we convert from Hz->kHz) */
|
||||||
tmp64 = tda10086_read_byte(state, 0x52);
|
tmp64 = ((u64)tda10086_read_byte(state, 0x52)
|
||||||
tmp64 |= (tda10086_read_byte(state, 0x51) << 8);
|
| (tda10086_read_byte(state, 0x51) << 8));
|
||||||
if (tmp64 & 0x8000)
|
if (tmp64 & 0x8000)
|
||||||
tmp64 |= 0xffffffffffff0000ULL;
|
tmp64 |= 0xffffffffffff0000ULL;
|
||||||
tmp64 = (tmp64 * (SACLK/1000ULL));
|
tmp64 = (tmp64 * (SACLK/1000ULL));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user