tpm: tpm_tis_i2c: Tidy up delays
authorSimon Glass <sjg@chromium.org>
Sun, 23 Aug 2015 00:31:30 +0000 (18:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:17 +0000 (12:19 +0200)
commit63ba81546db330a4ed87a924c050740228120527
tree0872b8be57bf53edbab187b0d5a5c04b39524c64
parent4260da127e1eb7c4de8cb8ebf732e6990b53d898
tpm: tpm_tis_i2c: Tidy up delays

Use a _US suffix for microseconds and a _MS suffic for milliseconds. Move
all timeouts and delays into one place. Use mdelay() instead of udelay()
where appropriate.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/tpm/tpm_tis_i2c.c
drivers/tpm/tpm_tis_i2c.h