]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: imx_lpi2c: Improve the codes to use private data
authorYe Li <ye.li@nxp.com>
Wed, 10 Jun 2020 03:29:50 +0000 (20:29 -0700)
committerHeiko Schocher <hs@denx.de>
Thu, 9 Jul 2020 04:02:44 +0000 (06:02 +0200)
commit35d3982e23d3449d93bcc4f1990e929998d69936
treec7114bbc097940eb7aec3fc5a2ef78350c143130
parent44ad59e695e6c7fd87e9f1a8590f746090d3afe4
i2c: imx_lpi2c: Improve the codes to use private data

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@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/i2c/imx_lpi2c.c