]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: i2c: Make API accessible even without CONFIG_DM
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 04:41:33 +0000 (21:41 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:50:46 +0000 (13:50 +0200)
commitb4d86e8482b7553c1e870cc98e9bf8b7e7a06ed6
tree2b70ac80a8a61954516493b519caa3ab2bf9c0f9
parent0c44ea4a32756413131c9fbee104ae2b48d714f5
dm: i2c: Make API accessible even without CONFIG_DM

Make the driver model I2C API available always, even if driver model
is not enabled. This allows for a 'soft' switch-over, where drivers can
use the new structures in code which is compiled but not yet used. This
makes migration easier in some cases.

Fix up the existing drivers which define their own 'struct i2c_msg'.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/i2c/adi_i2c.c
drivers/i2c/kona_i2c.c
drivers/i2c/mv_i2c.c
include/i2c.h