diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-08-11 17:41:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:31 -0400 |
commit | c7a46533ff7ef9e1c51bae6e54208527c5275b24 (patch) | |
tree | 4b952a757d60d9cfa4aad8462ee8ef7e03fec6dd /drivers/i2c/busses | |
parent | 1d8b9e1bad35fa3ea829990b9056c2a257d8fe79 (diff) |
[PATCH] I2C: Kill i2c_algorithm.id (5/7)
Merge the algorithm id part (16 upper bits) of the i2c adapters ids
into the definition of the adapters ids directly. After that, we don't
need to OR both ids together for each i2c_adapter structure.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-ibm_iic.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-isa.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-mpc.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c index f42ab909eb78..a3ed9590f028 100644 --- a/drivers/i2c/busses/i2c-ibm_iic.c +++ b/drivers/i2c/busses/i2c-ibm_iic.c | |||
@@ -725,7 +725,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){ | |||
725 | adap = &dev->adap; | 725 | adap = &dev->adap; |
726 | strcpy(adap->name, "IBM IIC"); | 726 | strcpy(adap->name, "IBM IIC"); |
727 | i2c_set_adapdata(adap, dev); | 727 | i2c_set_adapdata(adap, dev); |
728 | adap->id = I2C_ALGO_OCP | I2C_HW_OCP; | 728 | adap->id = I2C_HW_OCP; |
729 | adap->algo = &iic_algo; | 729 | adap->algo = &iic_algo; |
730 | adap->client_register = NULL; | 730 | adap->client_register = NULL; |
731 | adap->client_unregister = NULL; | 731 | adap->client_unregister = NULL; |
diff --git a/drivers/i2c/busses/i2c-isa.c b/drivers/i2c/busses/i2c-isa.c index baae5dbc198e..bdc6806dafae 100644 --- a/drivers/i2c/busses/i2c-isa.c +++ b/drivers/i2c/busses/i2c-isa.c | |||
@@ -49,7 +49,7 @@ static struct i2c_algorithm isa_algorithm = { | |||
49 | /* There can only be one... */ | 49 | /* There can only be one... */ |
50 | static struct i2c_adapter isa_adapter = { | 50 | static struct i2c_adapter isa_adapter = { |
51 | .owner = THIS_MODULE, | 51 | .owner = THIS_MODULE, |
52 | .id = I2C_ALGO_ISA | I2C_HW_ISA, | 52 | .id = I2C_HW_ISA, |
53 | .class = I2C_CLASS_HWMON, | 53 | .class = I2C_CLASS_HWMON, |
54 | .algo = &isa_algorithm, | 54 | .algo = &isa_algorithm, |
55 | .name = "ISA main adapter", | 55 | .name = "ISA main adapter", |
diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c index 70c5ffaee6a3..f065583ddcf1 100644 --- a/drivers/i2c/busses/i2c-mpc.c +++ b/drivers/i2c/busses/i2c-mpc.c | |||
@@ -279,7 +279,7 @@ static struct i2c_algorithm mpc_algo = { | |||
279 | static struct i2c_adapter mpc_ops = { | 279 | static struct i2c_adapter mpc_ops = { |
280 | .owner = THIS_MODULE, | 280 | .owner = THIS_MODULE, |
281 | .name = "MPC adapter", | 281 | .name = "MPC adapter", |
282 | .id = I2C_ALGO_MPC107 | I2C_HW_MPC107, | 282 | .id = I2C_HW_MPC107, |
283 | .algo = &mpc_algo, | 283 | .algo = &mpc_algo, |
284 | .class = I2C_CLASS_HWMON, | 284 | .class = I2C_CLASS_HWMON, |
285 | .timeout = 1, | 285 | .timeout = 1, |
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 6e5dd4949237..eb6cc0869938 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c | |||
@@ -521,7 +521,7 @@ mv64xxx_i2c_probe(struct device *dev) | |||
521 | drv_data->freq_m = pdata->freq_m; | 521 | drv_data->freq_m = pdata->freq_m; |
522 | drv_data->freq_n = pdata->freq_n; | 522 | drv_data->freq_n = pdata->freq_n; |
523 | drv_data->irq = platform_get_irq(pd, 0); | 523 | drv_data->irq = platform_get_irq(pd, 0); |
524 | drv_data->adapter.id = I2C_ALGO_MV64XXX | I2C_HW_MV64XXX; | 524 | drv_data->adapter.id = I2C_HW_MV64XXX; |
525 | drv_data->adapter.algo = &mv64xxx_i2c_algo; | 525 | drv_data->adapter.algo = &mv64xxx_i2c_algo; |
526 | drv_data->adapter.owner = THIS_MODULE; | 526 | drv_data->adapter.owner = THIS_MODULE; |
527 | drv_data->adapter.class = I2C_CLASS_HWMON; | 527 | drv_data->adapter.class = I2C_CLASS_HWMON; |