diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-02 17:32:46 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-02 17:32:46 -0200 |
commit | 49335aab3d6d92e5022bae733347abb40332e5e6 (patch) | |
tree | 47bd7e8d02bc2e28bbed9c8dffe088524fafe4b3 /v4l | |
parent | 565a187e1f60cb82d9fe226d5668d28f1f85fdb4 (diff) | |
download | mediapointer-dvb-s2-49335aab3d6d92e5022bae733347abb40332e5e6.tar.gz mediapointer-dvb-s2-49335aab3d6d92e5022bae733347abb40332e5e6.tar.bz2 |
Backport some changesets touching S/G code
From: Mauro Carvalho Chehab <mchehab@infradead.org>
kernel-sync:
Backport kernel changesets:
45711f1af6eff1a6d010703b4862e0d2b9afd056
117636092a87a28a013a4acb5de5492645ed620f
642f149031d70415d9318b919d50b71e4724adbd
Also, added newer entreis at compat.h, to avoid needing to add checks for linux
versions inside the source codes.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 6f198e688..4e23e5fc5 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -466,6 +466,19 @@ static inline unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate) # define task_pid_nr(current) ((current)->pid) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) +# define sg_init_table(a,b) +# define sg_page(p) (sg->page) +# define sg_set_page(sglist,pg,sz,off) \ +do { \ + struct scatterlist *p=sglist; \ + p->page = pg; \ + p->length = sz; \ + p->offset = off; \ +} while (0) +#endif + + #endif /* * Local variables: |