Lines 20-25
Link Here
|
20 |
static int nv_i2c_algo_control(struct i2c_adapter *adap, unsigned int dummy1, unsigned long dummy2); |
20 |
static int nv_i2c_algo_control(struct i2c_adapter *adap, unsigned int dummy1, unsigned long dummy2); |
21 |
static u32 nv_i2c_algo_functionality(struct i2c_adapter *adap); |
21 |
static u32 nv_i2c_algo_functionality(struct i2c_adapter *adap); |
22 |
|
22 |
|
|
|
23 |
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 18) |
24 |
static struct i2c_algorithm nv_i2c_algo = { |
25 |
.master_xfer = nv_i2c_algo_xfer, |
26 |
.smbus_xfer = NULL, |
27 |
.algo_control = nv_i2c_algo_control, |
28 |
.functionality = nv_i2c_algo_functionality, |
29 |
}; |
30 |
|
31 |
#else |
32 |
|
23 |
static struct i2c_algorithm nv_i2c_algo = { |
33 |
static struct i2c_algorithm nv_i2c_algo = { |
24 |
.master_xfer = nv_i2c_algo_xfer, |
34 |
.master_xfer = nv_i2c_algo_xfer, |
25 |
.smbus_xfer = NULL, |
35 |
.smbus_xfer = NULL, |
Lines 28-33
Link Here
|
28 |
.algo_control = nv_i2c_algo_control, |
38 |
.algo_control = nv_i2c_algo_control, |
29 |
.functionality = nv_i2c_algo_functionality, |
39 |
.functionality = nv_i2c_algo_functionality, |
30 |
}; |
40 |
}; |
|
|
41 |
#endif // LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 18) |