Changeset 5570 for i2c/trunk/kernel/i2c.h
- Timestamp:
- 12/15/08 13:45:58 (3 years ago)
- Files:
-
- 1 modified
-
i2c/trunk/kernel/i2c.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/kernel/i2c.h
r5363 r5570 31 31 #define I2C_DATE "SVN" 32 32 #define I2C_VERSION "2.10.5-SVN" 33 34 /* You can set this to 0 if you patch i2c into your kernel tree35 and have no i2c module that have been compiled using a36 Linux-2.4-compatible i2c.h header file left.37 As a result, you'll get a different code (can't really38 say whether it's any better, but it's different). */39 #define I2C_LINUX_2_4_BINARY_COMPATIBILITY 140 33 41 34 #include <linux/module.h> … … 239 232 240 233 /* 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; 245 235 unsigned int flags;/* flags specifying div. data */ 246 236 247 237 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. */ 251 239 252 240 int timeout;
