On Dec 3, 2009, at 10:14 PM, Paul Bender wrote:
> Attached is a patch that enables LIRC to compile against Linux 2.6.32. As I do not have an i2c dependent receiver, I do not know whether or not i2c dependent receivers work with the patch, but at least it compiles.
> diff -Naur lirc-0.8.6-old/drivers/lirc_i2c/lirc_i2c.c lirc-0.8.6-new/drivers/lirc_i2c/lirc_i2c.c
> --- lirc-0.8.6-old/drivers/lirc_i2c/lirc_i2c.c 2009-08-30 09:59:53.000000000 -0700
> +++ lirc-0.8.6-new/drivers/lirc_i2c/lirc_i2c.c 2009-12-03 16:52:05.000000000 -0800
> @@ -399,7 +399,9 @@
> .name = "i2c ir driver",
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32)
> .id = I2C_DRIVERID_EXP3, /* FIXME */
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
> .attach_adapter = ir_probe,
> .detach_client = ir_remove,
Minor variation committed. The .id field was actually dropped from my lirc git tree over a year ago, so I simplified the change by just moving the .id line down within the < 2.6.31 block.