i2c: refactor parsing of timings
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 1 Apr 2020 19:30:18 +0000 (21:30 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 15 Apr 2020 10:53:57 +0000 (12:53 +0200)
commitdef00b32f02729eb55088f83b0f6e076cdbb3bc3
treeba124e7fa15b2f7c9ff47168081c1128e043c265
parentf27237c174fd9653033330e4e532cd9d153ce824
i2c: refactor parsing of timings

When I wanted to print the chosen values to debug output, I concluded
that a helper function to parse one timing would be helpful.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c