]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: designware_i2c: Drop scl_sda_cfg parameter
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:12 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:21:20 +0000 (07:21 +0100)
commit004164cb3cccb7616ec0b38c8db18bb43e77f522
tree662e7ffaa78b6080324b3e5a2360e94e66b2b047
parent0d8fd7ffce627671ff9839c9bd5d7cae265c41ad
i2c: designware_i2c: Drop scl_sda_cfg parameter

Instead of passing this parameter into __dw_i2c_set_bus_speed(), pass in
the driver's private data, from which the function can obtain that
information. This allows the function to have access to the full state of
the driver.

Signed-off-by: Sicomp_param1mon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/i2c/designware_i2c.c