linux_dsm_epyc7002/drivers/media/rc/img-ir
James Hogan b9e28d1f83 [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 <m.chehab@samsung.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-03-14 09:49:45 -03:00
..
img-ir-core.c
img-ir-hw.c [media] rc: img-ir: hw: Fix min/max bits setup 2014-03-14 09:49:45 -03:00
img-ir-hw.h [media] rc: img-ir: add hardware decoder driver 2014-03-11 15:23:58 -03:00
img-ir-jvc.c [media] rc: img-ir: jvc: Remove unused no-leader timings 2014-03-14 09:49:20 -03:00
img-ir-nec.c [media] rc: img-ir: add NEC decoder module 2014-03-11 15:46:57 -03:00
img-ir-raw.c [media] rc: img-ir: add raw driver 2014-03-11 15:13:00 -03:00
img-ir-raw.h [media] rc: img-ir: add raw driver 2014-03-11 15:13:00 -03:00
img-ir-sanyo.c [media] rc: img-ir: add Sanyo decoder module 2014-03-11 15:48:12 -03:00
img-ir-sharp.c [media] rc: img-ir: add Sharp decoder module 2014-03-11 15:47:55 -03:00
img-ir-sony.c [media] rc: img-ir: add Sony decoder module 2014-03-11 15:47:41 -03:00
img-ir.h
Kconfig [media] rc: img-ir: add Sanyo decoder module 2014-03-11 15:48:12 -03:00
Makefile [media] rc: img-ir: add Sanyo decoder module 2014-03-11 15:48:12 -03:00