diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-02 01:48:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-02 01:48:36 -0300 |
commit | 7004e666bc83e2d18605d5342afcfea363dc0532 (patch) | |
tree | c5122cbc8e3de922926fb4da2003f62b028205ac | |
parent | 5cf2fa0e402fe499df0fe2fe0e8120d8e41e86a1 (diff) | |
download | mediapointer-dvb-s2-7004e666bc83e2d18605d5342afcfea363dc0532.tar.gz mediapointer-dvb-s2-7004e666bc83e2d18605d5342afcfea363dc0532.tar.bz2 |
add compat code for proc_create_data()
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-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 |