Show
Ignore:
Timestamp:
12/15/08 13:45:58 (3 years ago)
Author:
khali
Message:

Drop Linux 2.4 binary incompatibility mode. It didn't make any sense
to start with. Dropping it will make the code more simple and the
differences to the mainline kernel smaller.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c.h

    r5363 r5570  
    3131#define I2C_DATE "SVN" 
    3232#define I2C_VERSION "2.10.5-SVN" 
    33  
    34 /* You can set this to 0 if you patch i2c into your kernel tree 
    35    and have no i2c module that have been compiled using a 
    36    Linux-2.4-compatible i2c.h header file left.  
    37    As a result, you'll get a different code (can't really 
    38    say whether it's any better, but it's different). */ 
    39 #define I2C_LINUX_2_4_BINARY_COMPATIBILITY 1 
    4033 
    4134#include <linux/module.h> 
     
    239232 
    240233                        /* data fields that are valid for all devices   */ 
    241         struct semaphore bus; 
    242 #if !I2C_LINUX_2_4_BINARY_COMPATIBILITY 
    243         struct semaphore list;   
    244 #endif 
     234        struct semaphore lock;   
    245235        unsigned int flags;/* flags specifying div. data                */ 
    246236 
    247237        struct i2c_client *clients[I2C_CLIENT_MAX]; 
    248 #if I2C_LINUX_2_4_BINARY_COMPATIBILITY 
    249         int client_count; /* not used anywhere */ 
    250 #endif 
     238        int client_count; /* not used anywhere, kept for binary compat. */ 
    251239 
    252240        int timeout;