media: rc: imon_raw: use fls rather than loop per bit
authorSean Young <sean@mess.org>
Thu, 18 Oct 2018 16:06:05 +0000 (12:06 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 22 Nov 2018 18:29:27 +0000 (13:29 -0500)
commit8d023a5787775cd1cee73957777122366f6eb88e
tree7099086f4f93b861f6880d36e64fdcec1d4cb28c
parentcea1c41d6ba010559f9ccdcfc80ce185e7fab080
media: rc: imon_raw: use fls rather than loop per bit

Previously, the code would loop for each of the 40 bits. Now it will
branch for each edge in the IR, which will be much less.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/imon_raw.c