dm: i2c: Move error reporting into a common function
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 17:46:17 +0000 (10:46 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 07:14:54 +0000 (08:14 +0100)
commitc1a6f371ae65f1a3709e872e08bed51321e292fc
treeb9907cae9410657225c96756d9dcd540a985d59c
parent38687ae67664d0f7ee907a2053d4a0663744b7b4
dm: i2c: Move error reporting into a common function

Factor out the common code to make it easier to adjust it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
common/cmd_i2c.c