]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/staging/media/lirc/lirc_zilog.c
[media] lirc_zilog: Don't acquire the rx->buf_lock in the poll() function
authorAndy Walls <awalls@md.metrocast.net>
Thu, 27 Jan 2011 05:10:42 +0000 (02:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 22:23:54 +0000 (19:23 -0300)
commit915e54733de4a36742ab78b4768750ce72662f85
treee7531da1ff91d843577a6ac5fc7b021234885166
parent9a55a2b37eb7e4941ef55aadb858b615d229afee
[media] lirc_zilog: Don't acquire the rx->buf_lock in the poll() function

There is no need to take the rx->buf_lock in the the poll() function
as all the underling calls made on objects in the rx->buf lirc_buffer object
are protected by spinlocks.

Corrected a bad error return value in poll(): return POLLERR instead
of -ENODEV.

Added some comments to poll() for when, in the future, I forget what
poll() and poll_wait() are supposed to do.

[Jarod: minor debug spew fix]

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