commit | c5294195eb36d029a84917b84862d1d46474f6a1 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Jan 23 11:48:25 2020 -0700 |
committer | Heiko Schocher <hs@denx.de> | Mon Jan 27 07:24:44 2020 +0100 |
tree | b85035e58694d57baa9ad2859c60c0ce3087e9c2 | |
parent | b4544bdb231cc68a4d6266d377c33368b371bcc0 [diff] |
i2c: designware_i2c: Separate out the speed calculation We want to be able to calculate the speed separately from actually setting the speed, so we can generate the required ACPI tables. Split out the calculation into its own function. Drop the double underscore on __dw_i2c_set_bus_speed while we are here. That is reserved for compiler internals. Signed-off-by: Simon Glass <sjg@chromium.org>