From: James Hogan Date: Thu, 13 Mar 2014 10:29:22 +0000 (-0300) Subject: [media] rc: img-ir: hw: Fix min/max bits setup X-Git-Tag: v3.15-rc1~85^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9e28d1f8301d6e393b8937282f325f13fb9cf6a;p=pandora-kernel.git [media] rc: img-ir: hw: Fix min/max bits setup The calculated values for the minlen and maxlen fields, which were rounded to multiples of 2 and clamped to a valid range, were left unused. Use them in the calculation of the register value rather than using the raw input minlen and maxlen. This fixes the following warning with a W=1 build: drivers/media/rc/img-ir/img-ir-hw.c In function ‘img_ir_free_timing’: drivers/media/rc/img-ir/img-ir-hw.c +228 :23: warning: variable ‘maxlen’ set but not used [-Wunused-but-set-variable] drivers/media/rc/img-ir/img-ir-hw.c +228 :15: warning: variable ‘minlen’ set but not used [-Wunused-but-set-variable] Reported-by: Mauro Carvalho Chehab Signed-off-by: James Hogan Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed