aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-23 12:29:46 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-24 08:38:30 -0300
commitfaebbd8f134f0c054f372982c8ddd1bbcc41b440 (patch)
tree5e5f13336674ad8cd74a5755cb94400480e75a6d /include
parent[media] lmedm04: use u32 instead of u64 for relative stats (diff)
downloadlinux-dev-faebbd8f134f0c054f372982c8ddd1bbcc41b440.tar.xz
linux-dev-faebbd8f134f0c054f372982c8ddd1bbcc41b440.zip
[media] lmedm04: fix the range for relative measurements
Relative measurements are typically between 0 and 0xffff. However, for some tuners (TUNER_S7395 and TUNER_S0194), the range were from 0 to 0xff00, with means that 100% is never archived. Also, TUNER_RS2000 uses a more complex math. So, create a macro that does the conversion using bit operations and use it for all conversions. The code is also easier to read with is a bonus. While here, remove a bogus comment. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions