Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 127122 | Differences between
and this patch

Collapse All | Expand All

(-)lirc-0.8.0/drivers/kcompat.h (-1 / +12 lines)
Lines 1-10 Link Here
1
/*      $Id: kcompat.h,v 5.24 2006/01/07 20:51:31 lirc Exp $      */
1
/*      $Id: kcompat.h,v 5.26 2006/03/04 23:16:02 lirc Exp $      */
2
2
3
#ifndef _KCOMPAT_H
3
#ifndef _KCOMPAT_H
4
#define _KCOMPAT_H
4
#define _KCOMPAT_H
5
5
6
#include <linux/version.h>
6
#include <linux/version.h>
7
7
8
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
9
#define LIRC_THIS_MODULE(x) x,
10
#else /* >= 2.6.16 */
11
#define LIRC_THIS_MODULE(x)
12
#endif
13
8
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
14
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
9
15
10
#include <linux/device.h>
16
#include <linux/device.h>
Lines 245-250 Link Here
245
#   define I2C_ALGO_BIT 0
251
#   define I2C_ALGO_BIT 0
246
#endif
252
#endif
247
253
254
/* removed in 2.6.16 */
255
#ifndef I2C_DRIVERID_EXP3
256
#  define I2C_DRIVERID_EXP3 0xf003
257
#endif
258
248
/*************************** USB specific *****************************/
259
/*************************** USB specific *****************************/
249
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0)
260
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0)
250
#include <linux/usb.h>
261
#include <linux/usb.h>
(-)lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c (-2 / +9 lines)
Lines 1-4 Link Here
1
/*      $Id: lirc_i2c.c,v 1.35 2005/10/20 18:25:58 lirc Exp $      */
1
/*      $Id: lirc_i2c.c,v 1.36 2006/03/04 23:16:03 lirc Exp $      */
2
2
3
/*
3
/*
4
 * i2c IR lirc plugin for Hauppauge and Pixelview cards - new 2.3.x i2c stack
4
 * i2c IR lirc plugin for Hauppauge and Pixelview cards - new 2.3.x i2c stack
Lines 360-368 Link Here
360
static int ir_command(struct i2c_client *client, unsigned int cmd, void *arg);
360
static int ir_command(struct i2c_client *client, unsigned int cmd, void *arg);
361
361
362
static struct i2c_driver driver = {
362
static struct i2c_driver driver = {
363
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
363
        name:           "i2c ir driver",
364
        name:           "i2c ir driver",
364
        id:             I2C_DRIVERID_EXP3, /* FIXME */
365
        flags:          I2C_DF_NOTIFY,
365
        flags:          I2C_DF_NOTIFY,
366
#else
367
	.driver = {
368
		owner:  THIS_MODULE,
369
		name:   "i2c ir driver",
370
	},
371
#endif
372
        id:             I2C_DRIVERID_EXP3, /* FIXME */
366
        attach_adapter: ir_probe,
373
        attach_adapter: ir_probe,
367
        detach_client:  ir_detach,
374
        detach_client:  ir_detach,
368
        command:        ir_command,
375
        command:        ir_command,

Return to bug 127122