linux/drivers/media/rc
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 [media] rc: img-ir: hw: Fix min/max bits setup 2014-03-14 09:49:45 -03:00
keymaps [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
Kconfig [media] rc: img-ir: add to build 2014-03-11 15:43:04 -03:00
Makefile [media] rc: img-ir: add to build 2014-03-11 15:43:04 -03:00
ati_remote.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.h [media] ene_ir: don't use pr_debug after all 2013-07-29 11:49:45 -03:00
fintek-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
fintek-cir.h [media] rc: Fir warnings on m68k arch 2013-11-08 09:45:37 -02:00
gpio-ir-recv.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
iguanair.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
imon.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-jvc-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-lirc-codec.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-mce_kbd-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-nec-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-raw.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-sz-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc6-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rx51.c [media] ir-rx51: remove deprecated IRQF_DISABLED 2013-10-17 06:09:02 -03:00
ir-sanyo-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sharp-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sony-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.h [media] ite-cir: 8709 needs to use pnp resource 2 2011-07-01 16:31:38 -03:00
lirc_dev.c [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
mceusb.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.h [media] nuvoton-cir: Don't touch PS/2 interrupts while initializing 2014-02-04 17:47:26 -02:00
rc-core-priv.h [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
rc-loopback.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
rc-main.c [media] media: rc-core: use %s in rc_map_get() module load 2014-03-13 11:32:28 -03:00
redrat3.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
st_rc.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
streamzap.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ttusbir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
winbond-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00