]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: imx_lpi2c: Replace hard-coded bus speed value with bus->speed_hz
authorFedor Ross <fedor.ross@ifm.com>
Wed, 7 Aug 2024 14:08:00 +0000 (16:08 +0200)
committerHeiko Schocher <hs@denx.de>
Fri, 9 Aug 2024 12:46:49 +0000 (14:46 +0200)
commit34c6731abe4fa5efadbb7519a050d2fcbdba3cab
treeb1341343646fa3fd112a5caeb828c23a95447729
parented1842623f6c8805fd75704a71c6fbf3af6b8327
i2c: imx_lpi2c: Replace hard-coded bus speed value with bus->speed_hz

Instead of using the hard-coded bus speed value I2C_SPEED_STANDARD_RATE,
use the actual configured bus speed. This way the bus speed doesn't
change suddenly after calling the imx_lpi2c_probe_chip() function for
example.

Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
drivers/i2c/imx_lpi2c.c