Subversion Repositories Kolibri OS

Rev

Rev 1430 | Rev 1964 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1430 Rev 1631
Line 31... Line 31...
31
#include 
31
#include 
32
#include 
32
#include 
Line 33... Line 33...
33
 
33
 
-
 
34
 
-
 
35
#define I2C_NAME_SIZE   20
-
 
36
#define I2C_MODULE_PREFIX "i2c:"
-
 
37
 
-
 
38
struct i2c_device_id {
-
 
39
	char name[I2C_NAME_SIZE];
-
 
40
	u32  driver_data	/* Data private to the driver */
-
 
41
			__attribute__((aligned(sizeof(u32))));
Line 34... Line 42...
34
 
42
};
35
#define I2C_NAME_SIZE   20
43
 
36
 
44
 
37
struct i2c_msg;
45
struct i2c_msg;
Line 201... Line 209...
201
    int nr;
209
    int nr;
202
    char name[48];
210
    char name[48];
203
};
211
};
204
#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)
212
#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)
Line 205... Line 213...
205
 
213
 
206
static inline void *i2c_get_adapdata(const struct i2c_adapter *dev)
214
static inline void *i2c_get_adapdata(struct i2c_adapter *dev)
207
{
215
{
208
	return dev_get_drvdata(&dev->dev);
216
	return dev_get_drvdata(&dev->dev);
Line 209... Line 217...
209
}
217
}