diff options
-rw-r--r-- | v4l/compat.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 49b04961f..04950ea74 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -549,6 +549,21 @@ static inline struct proc_dir_entry *proc_create(const char *a, } return e; } + +static inline struct proc_dir_entry *proc_create_data(const char *a, + mode_t b, struct proc_dir_entry *c, const struct file_operations *d, + void *f) +{ + struct proc_dir_entry *e; + + e = create_proc_entry(a, b, c); + if (e) { + e->owner = THIS_MODULE; + e->proc_fops = d; + e->data = f; + } + return e; +} #endif #endif |