dm: i2c: Add a compatbility layer
authorSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 01:02:08 +0000 (18:02 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:53 +0000 (17:09 -0700)
commit73845350b6281a7afeeb279475e6eb613d7a89f9
treeed256f2bb68fc6fca814fa24d059058a14e7de62
parentf9a4c2da72d04e13b05deecb800f232d2948eb85
dm: i2c: Add a compatbility layer

For boards which use multiple I2C devices, or for SOCs which support
multiple boards, we might want to convert these to driver model at different
times. At present this is difficult because we need to either use
CONFIG_DM_I2C for a board or not.

Add a compatibility layer which implements the old API, thus allowing a
board to move to driver model for I2C without requiring that everything it
uses is moved in the same commit.

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile
drivers/i2c/Makefile
drivers/i2c/i2c-uclass-compat.c [new file with mode: 0644]
include/i2c.h