summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-27 09:20:20 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-27 09:20:20 -0300
commita2f7e7dbf0f5aeb8842ac6c3e9acd151180d1975 (patch)
tree741bed0ecafa35596053d8e6debbce43691a0a39 /v4l
parent77b963e9fbc0911412eb7b86df83d976f81abf2d (diff)
parent3590a589476f8094edb2a807adaa699215c2d5ee (diff)
downloadmediapointer-dvb-s2-a2f7e7dbf0f5aeb8842ac6c3e9acd151180d1975.tar.gz
mediapointer-dvb-s2-a2f7e7dbf0f5aeb8842ac6c3e9acd151180d1975.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/mxl5007t
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 5e46c8271..551696082 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -228,4 +228,11 @@ static inline struct proc_dir_entry *proc_create_data(const char *a,
typedef unsigned long uintptr_t;
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
+static inline int list_is_singular(const struct list_head *head)
+{
+ return !list_empty(head) && (head->next == head->prev);
+}
+#endif
+
#endif