]> git.openfabrics.org - ~emulex/infiniband.git/commit
V4L/DVB: em28xx-input: Don't generate one debug message for every get_key read
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 27 Jun 2010 11:32:11 +0000 (08:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:53:30 +0000 (14:53 -0300)
commit603044d883d610acdb44daecf94b0fca48880b5c
treea643691f114b3b720a21b4f2eabb9acc4860bbf6
parenta469585b1cd41e6efd5c2746a655feb840525e5c
V4L/DVB: em28xx-input: Don't generate one debug message for every get_key read

Instead of generating one printk for every IR read, prints it only when
count is different from the last count.

While here, as this code is called on every 100ms during the runtime
lifetime, do some performance optimization, assuming that, under normal
circumstances, it is unlikely that the driver would get a new key/key
repeat on every poll.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-input.c