]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] cx24120: Rework vco function to remove xxyyzz variable
authorJemma Denson <jdenson@gmail.com>
Sun, 3 May 2015 11:55:15 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 18 May 2015 19:36:13 +0000 (16:36 -0300)
commitc84251bb122d6abcb0178f2c922f9ef51740e7ad
treebba0591f42d4bb0446183513242e4ac8b75fcacb
parent6ce412292a2ae15eea55c70f43449a9857404c00
[media] cx24120: Rework vco function to remove xxyyzz variable

Change calculate_vco function to send_vco to tidy up cx24120_init
function.
xxyyzz variable is remnants of a manual div & remainder codepath
to perform a u64 rounded div; replace with kernel macro
DIV_ROUND_CLOSEST_ULL
Hex values provided to the message are mainly variables calculated
within this function, replace with these to remove hardcoding.

Signed-off-by: Jemma Denson <jdenson@gmail.com>
Signed-off-by: Patrick Boettcher <patrick.boettcher@posteo.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/cx24120.c