i2c: designware_i2c: Put hold config in a struct
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:13 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:21:36 +0000 (07:21 +0100)
commit31adb873e7a8680f8aac8ba259717b3f2265872e
tree6a993a1b6a0720051f772e9af4127561a26ecb5b
parentd22409e2dc7adfaf99c1a5a02902a425f98fd15a
i2c: designware_i2c: Put hold config in a struct

Create a struct to hold the three timing parameters. This will make it
easier to move these calculations into a separate function in a later
patch.

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