diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-20 01:28:27 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-20 01:28:27 +0100 |
commit | a012e750305d20ec8b2f79b6a32c5e7920096fd3 (patch) | |
tree | 99a4ee3aabc3f0c6232d9e49ff7c8470ab1fb2e0 /v4l/compat.h | |
parent | 786d73eb9aad6efa7ddd89150d18a689d08f4e07 (diff) | |
download | mediapointer-dvb-s2-a012e750305d20ec8b2f79b6a32c5e7920096fd3.tar.gz mediapointer-dvb-s2-a012e750305d20ec8b2f79b6a32c5e7920096fd3.tar.bz2 |
v4l2-dev: use the release callback from device instead of cdev
From: Hans Verkuil <hverkuil@xs4all.nl>
Instead of relying on the cdev release callback we should rely on the
release callback from the device struct. This requires that we use
get_device/put_device to do proper refcounting. In order to do this
safely v4l2-dev.c now sets up its own file_operations that call
out to the driver's ops.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index ad2d9df22..49c89ea2d 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -34,6 +34,7 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) #define set_freezable() #define cancel_delayed_work_sync cancel_rearming_delayed_work +#define DEFAULT_POLLMASK (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM) #endif #ifndef __pure |