[PATCHv2 2/3] i2c: imx_lpi2c: Replace hard-coded bus speed value with bus->speed_hz

Heiko Schocher hs at denx.de
Wed Jul 31 05:43:34 CEST 2024


Hello Fedor,

On 30.07.24 17:25, fedorross at gmail.com wrote:
> From: Fedor Ross <fedor.ross at ifm.com>
> 
> 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 at ifm.com>
> ---
> Cc: Heiko Schocher <hs at denx.de>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Marek Vasut <marex at denx.de>
> ---
> 
> Changes in v2:
> - Add additional '---' below SoB line to separate Cc list. This way it
>    does not get included in the commit message when the patch is applied.
> - Drop the second parameter of bus_i2c_init().
> 
>   drivers/i2c/imx_lpi2c.c | 15 +++++++++------
>   1 file changed, 9 insertions(+), 6 deletions(-)

Reviewed-by: Heiko Schocher <hs at denx.de>

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list