]> git.baikalelectronics.ru Git - kernel.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)
commit872800b382b90967fe8d0deee7903357af182bc1
treebba0591f42d4bb0446183513242e4ac8b75fcacb
parent04dcacbacaf49f770e587e6a60faebb3eb611e07
[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