diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-11 20:09:24 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-11 20:09:24 -0400 |
| commit | 57014123512633ab0c38a4fea4140bf156f6a3a0 (patch) | |
| tree | a46e864f9c508d8228e79928519742af6a42b7e4 /drivers/i2c/busses/i2c-sibyte.c | |
| parent | c3921ab71507b108d51a0f1ee960f80cd668a93d (diff) | |
| parent | ae429083efe996ca2c569c44fd6fea440676dc33 (diff) | |
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
i2c: Convert some more new-style drivers to use module aliasing
i2c: Match dummy devices by type
i2c-sibyte: Mark i2c_sibyte_add_bus() as static
i2c-sibyte: Correct a comment about frequency
i2c: Improve the functionality documentation
i2c: Improve smbus-protocol documentation
i2c-piix4: Blacklist two mainboards
i2c-piix4: Increase the intitial delay for the ServerWorks CSB5
i2c-mpc: Compare to NO_IRQ instead of zero
Diffstat (limited to 'drivers/i2c/busses/i2c-sibyte.c')
| -rw-r--r-- | drivers/i2c/busses/i2c-sibyte.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-sibyte.c b/drivers/i2c/busses/i2c-sibyte.c index 8fbbdb4c2f35..114634da6c6e 100644 --- a/drivers/i2c/busses/i2c-sibyte.c +++ b/drivers/i2c/busses/i2c-sibyte.c | |||
| @@ -132,14 +132,14 @@ static const struct i2c_algorithm i2c_sibyte_algo = { | |||
| 132 | /* | 132 | /* |
| 133 | * registering functions to load algorithms at runtime | 133 | * registering functions to load algorithms at runtime |
| 134 | */ | 134 | */ |
| 135 | int __init i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed) | 135 | static int __init i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed) |
| 136 | { | 136 | { |
| 137 | struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; | 137 | struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; |
| 138 | 138 | ||
| 139 | /* register new adapter to i2c module... */ | 139 | /* Register new adapter to i2c module... */ |
| 140 | i2c_adap->algo = &i2c_sibyte_algo; | 140 | i2c_adap->algo = &i2c_sibyte_algo; |
| 141 | 141 | ||
| 142 | /* Set the frequency to 100 kHz */ | 142 | /* Set the requested frequency. */ |
| 143 | csr_out32(speed, SMB_CSR(adap,R_SMB_FREQ)); | 143 | csr_out32(speed, SMB_CSR(adap,R_SMB_FREQ)); |
| 144 | csr_out32(0, SMB_CSR(adap,R_SMB_CONTROL)); | 144 | csr_out32(0, SMB_CSR(adap,R_SMB_CONTROL)); |
| 145 | 145 | ||
