[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)
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>

No differences found