diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-08-11 17:38:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:29 -0400 |
commit | 87c3d7a8bc0ff5c8d4481e509b407b6be1859925 (patch) | |
tree | 73fadb7bdd87a054cf3131b541af4216ba545755 /drivers/i2c/algos/i2c-algo-pca.c | |
parent | e51cc6b3a365e170d3ebe51c2308fdd42e027a46 (diff) |
[PATCH] I2C: Kill i2c_algorithm.id (3/7)
Don't rely on i2c_algorithm.id to alter the i2c adapter's id, use the
I2C_ALGO_* value directly instead, because i2c_algorithm will soon
have no id member no more.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-pca.c')
-rw-r--r-- | drivers/i2c/algos/i2c-algo-pca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/algos/i2c-algo-pca.c b/drivers/i2c/algos/i2c-algo-pca.c index 16157391cdf5..79b3c2edcf08 100644 --- a/drivers/i2c/algos/i2c-algo-pca.c +++ b/drivers/i2c/algos/i2c-algo-pca.c | |||
@@ -371,7 +371,7 @@ int i2c_pca_add_bus(struct i2c_adapter *adap) | |||
371 | 371 | ||
372 | /* register new adapter to i2c module... */ | 372 | /* register new adapter to i2c module... */ |
373 | 373 | ||
374 | adap->id |= pca_algo.id; | 374 | adap->id |= I2C_ALGO_PCA; |
375 | adap->algo = &pca_algo; | 375 | adap->algo = &pca_algo; |
376 | 376 | ||
377 | adap->timeout = 100; /* default values, should */ | 377 | adap->timeout = 100; /* default values, should */ |