Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Thorsten Blum and committed by
Herbert Xu
68e96c97 3193dd7e

+1 -1
+1 -1
drivers/crypto/atmel-i2c.c
··· 370 370 } 371 371 } 372 372 373 - if (bus_clk_rate > 1000000L) { 373 + if (bus_clk_rate > I2C_MAX_FAST_MODE_PLUS_FREQ) { 374 374 dev_err(dev, "%u exceeds maximum supported clock frequency (1MHz)\n", 375 375 bus_clk_rate); 376 376 return -EINVAL;