]> 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)
commitf3b88888913d923b60b28ddf063e7d4f8a7fd4fd
treed67234d976b50a403ea5bcd93745ba4031c6417a
parentd4d16999e4ec8340c1d969c2eef22282e47ac289
[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