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> |