]> git.baikalelectronics.ru Git - kernel.git/commit
[media] siano: add support for .poll on debugfs
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Mar 2013 13:27:44 +0000 (10:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 10:52:29 +0000 (07:52 -0300)
commitd67d825a8ff269c7b927bbfc203430fd2c00ebe0
treed67234d976b50a403ea5bcd93745ba4031c6417a
parent273f23fdae6f97265980b4328e9093a1238bd5f6
[media] siano: add support for .poll on debugfs

Implement poll() method for debugfs and be sure that the
debug_data won't be freed on ir or on read().
With this change, poll() will return POLLIN if either data was
filled or if data was read. That allows read() to return 0
to indicate EOF in the latter case.
As poll() is now provided, fix support for non-block mode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/siano/smsdvb-debugfs.c