]> git.baikalelectronics.ru Git - uboot.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)
commite98e8f1912709ad279c0526558d906724502379a
treec7114bbc097940eb7aec3fc5a2ef78350c143130
parent9c71936e31b39a9c9b371d89783c8aa8a8302435
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