Commit 5e6b681b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] stv0297: change typecast to u64 to avoid smatch warnings

drivers/media/dvb-frontends/stv0297.c:140 stv0297_get_symbolrate() warn: should 'stv0297_readreg(state, 86) << 8' be a 64 bit type?
drivers/media/dvb-frontends/stv0297.c:141 stv0297_get_symbolrate() warn: should 'stv0297_readreg(state, 87) << 16' be a 64 bit type?
drivers/media/dvb-frontends/stv0297.c:142 stv0297_get_symbolrate() warn: should 'stv0297_readreg(state, 88) << 24' be a 64 bit type?
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 2267d2d7
...@@ -136,10 +136,10 @@ static u32 stv0297_get_symbolrate(struct stv0297_state *state) ...@@ -136,10 +136,10 @@ static u32 stv0297_get_symbolrate(struct stv0297_state *state)
{ {
u64 tmp; u64 tmp;
tmp = stv0297_readreg(state, 0x55); tmp = (u64)(stv0297_readreg(state, 0x55)
tmp |= stv0297_readreg(state, 0x56) << 8; | (stv0297_readreg(state, 0x56) << 8)
tmp |= stv0297_readreg(state, 0x57) << 16; | (stv0297_readreg(state, 0x57) << 16)
tmp |= stv0297_readreg(state, 0x58) << 24; | (stv0297_readreg(state, 0x58) << 24));
tmp *= STV0297_CLOCK_KHZ; tmp *= STV0297_CLOCK_KHZ;
tmp >>= 32; tmp >>= 32;
......
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