[media] lirc_zilog: Update IR Rx polling kthread start/stop and some printks
authorAndy Walls <awalls@md.metrocast.net>
Sun, 16 Jan 2011 01:02:05 +0000 (22:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:46:07 +0000 (11:46 -0200)
commitb757730b022b4b1367d0435fcaa1b0a01e8aef42
tree50caa93ce85cd02a084d8008ed23a10338f1bdd7
parenta68a9b73fbb05144a71b573f262fbc8ed8f71179
[media] lirc_zilog: Update IR Rx polling kthread start/stop and some printks

The IR Rx polling thread was originally a kernel_thread long ago,
and had only been minimally converted to a kthread.  This patch
finishes that conversion by

- cleaning up all the unneeded completions

- destroying the kthread properly by calling kthread_stop()

- changing lirc_thread() to test kthread_should_stop() just before
every point where it may sleep

- reorganizing the lirc_thread() function so it uses fewer lines

- modifying the name of the kthread from "lirc_zilog" to
"zilog-rx-i2c-N", so ps will show which kthread polls
which Zilog Z8 IR unit.

Also some minor tweaks were made to logging emitted by the
ir_probe() function.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_zilog.c