]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: sh_mobile: check timing parameters for valid range
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 2 May 2014 19:15:15 +0000 (21:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 22 May 2014 08:09:24 +0000 (10:09 +0200)
commit7663ebefca8079ef0fd2fff1047d3d10af654c78
treee9de9c4476c82e08bb29f58c8ccdf9fbfaeb4161
parent6ed7053c2255c34886297b995c6a18607b36d668
i2c: sh_mobile: check timing parameters for valid range

Due to misconfiguration, it can happen that the calculated timing
parameters are out of range. Bail out if that happens. We can also
simplify some logic later because of the verified value. Also, make the
printouts of the values more precise by adding the hex-prefixes.

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