From: Klaus Schmidinger Date: Tue, 24 Jan 2012 08:33:53 +0000 (-0300) Subject: [media] stb0899: fix the limits for signal strength values X-Git-Tag: v3.4-rc1~110^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e377819b99bf2290c94a0eec2be4443b4630ccd;p=pandora-kernel.git [media] stb0899: fix the limits for signal strength values stb0899: fix the limits for signal strength values stb0899_read_signal_strength() adds an offset to the result of the table lookup. That offset must correspond to the lowest value in the lookup table, to make sure the result doesn't get below 0, which would mean a "very high" value since the parameter is unsigned. 'strength' and 'snr' need to be initialized to 0 to make sure they have a defined result in case there is no "internal->lock". Signed-off-by: Klaus Schmidinger Cc: Manu Abraham Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed