[PATCH] i2c: imx_lpi2c: Improve the codes to use private data

Heiko Schocher hs at denx.de
Thu Jul 9 10:32:16 CEST 2020


Hello Ye Li,

Am 10.06.2020 um 05:29 schrieb Ye Li:
> Current driver calls the devfdt_get_addr to get the base address
> of lpi2c controller in each sub-functions. Since the devfdt_get_addr
> accesses the DTB and translate the address, it introduces much
> overhead.
> Improve the codes to use private variable which has recorded the
> base address from probe.
> 
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Reviewed-by: Peng Fan <peng.fan at nxp.com>
> ---
>   drivers/i2c/imx_lpi2c.c | 22 +++++++++++-----------
>   1 file changed, 11 insertions(+), 11 deletions(-)

Applied to u-boot-i2c.git master

Thanks!

bye,
Heiko

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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