crypto: atmel-i2c - Replace hard-coded bus clock rate with constant
Subsystems (2)
PATCH 1/1 crypto: atmel-i2c - Replace hard-coded bus clock rate with constant
Replace 1000000L with I2C_MAX_FAST_MODE_PLUS_FREQ.
Signed-off-by Thorsten Blum <[email protected]>
--- drivers/crypto/atmel-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/atmel-i2c.c +1 -1
@@ -370,7 +370,7 @@ int atmel_i2c_probe(struct i2c_client *client) } } -if (bus_clk_rate >1000000L ) { +if (bus_clk_rate >I2C_MAX_FAST_MODE_PLUS_FREQ ) {dev_err (dev,"%u exceeds maximum supported clock frequency (1MHz)\n" , bus_clk_rate);return -EINVAL ;
Signature · 2 lines
Thorsten Blum <[email protected]> GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
Herbert Xu
maintainerQuoted 6 lines · Thorsten Blum
Replace 1000000L with
I2C_MAX_FAST_MODE_PLUS_FREQ.Signed-off-by Thorsten Blum <[email protected]>--- drivers/crypto/atmel-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt