summaryrefslogtreecommitdiff
path: root/linux/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-27 15:32:23 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-27 15:32:23 -0300
commit9c9fd460173573929daf32f42a502283a9aaae26 (patch)
treea6b7c0cc7cbb0789f837508394263ccaf1df31ca /linux/include/media
parentfa6bf06d0bc8a417de4d20da09191a12baf5b6a4 (diff)
downloadmediapointer-dvb-s2-9c9fd460173573929daf32f42a502283a9aaae26.tar.gz
mediapointer-dvb-s2-9c9fd460173573929daf32f42a502283a9aaae26.tar.bz2
Building system: Restore compilation with kernels older than 2.6.29
From: Mauro Carvalho Chehab <mchehab@redhat.com> Mostly due to ir-kdb-i2c, but also due to two new drivers, compilation with kernels older than 2.6.29 were broken. This quick and dirty changeset, generated semi-automatically, restaures backport to the subsystem by adding lots of #ifs. It is possible to write a much more small changeset that would restore backport without adding so many ifs, but, due to the lack of time, this will also solve it. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/include/media')
-rw-r--r--linux/include/media/ir-kbd-i2c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/include/media/ir-kbd-i2c.h b/linux/include/media/ir-kbd-i2c.h
index 3ad4ed540..93a6c933b 100644
--- a/linux/include/media/ir-kbd-i2c.h
+++ b/linux/include/media/ir-kbd-i2c.h
@@ -7,7 +7,11 @@ struct IR_i2c;
struct IR_i2c {
IR_KEYTAB_TYPE *ir_codes;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
+ struct i2c_client c;
+#else
struct i2c_client *c;
+#endif
struct input_dev *input;
struct ir_input_state ir;