i2c: sh_mobile: add helper to check frequency calculations
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 18 Dec 2017 21:58:00 +0000 (22:58 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 17:01:03 +0000 (18:01 +0100)
commitc3449f73a80b2b04a3f7ff69be871c153ea1a9fa
tree01599dd9e2d89720de417e23d59c053337864c74
parent023c22fd82ce0c62d7490ace6388191375ef4133
i2c: sh_mobile: add helper to check frequency calculations

Because we will add a second formula soon, put the sanity checks for the
computed results into a separate function.

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