i2c: designware: Do not calculate SCL timing parameters needlessly
authorJarkko Nikula <[email protected]>
Fri, 23 Jan 2015 09:35:55 +0000 (11:35 +0200)
committerWolfram Sang <[email protected]>
Mon, 26 Jan 2015 15:58:26 +0000 (16:58 +0100)
commit42ffd3907c1663441cd1bd4d1a575930b63a5964
treeb50bac0f8565ef9bb3da2b593b494599a9451804
parentc680eed5ccd4a1c99ee48cd41f4e5fdfad497dc2
i2c: designware: Do not calculate SCL timing parameters needlessly

Do SCL timing parameter calculation conditionally depending are custom
parameters provided since calculated values will get instantly overwritten
by provided parameters.

Signed-off-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-designware-core.c