From: Mauro Carvalho Chehab Date: Tue, 23 Jun 2015 15:29:46 +0000 (-0300) Subject: [media] lmedm04: fix the range for relative measurements X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faebbd8f134f0c054f372982c8ddd1bbcc41b440;p=pandora-kernel.git [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 --- Reading git-diff-tree failed