tegra: i2c: Add function to know about current bus
authorSimon Glass <sjg@chromium.org>
Tue, 30 Oct 2012 07:28:52 +0000 (07:28 +0000)
committerHeiko Schocher <hs@denx.de>
Tue, 23 Jul 2013 06:34:54 +0000 (08:34 +0200)
commitd84eb856c4385c90f4f68594819744b638f77a02
tree67f57a86d918126a9559fe58fd8883d8b2e2df72
parentf3e9361771af69b12699c8e58b174d72f0bb545e
tegra: i2c: Add function to know about current bus

Rather than using a variable in various places, add a single function,
tegra_i2c_get_bus(), which returns a pointer to information about a
bus.

This will make it easier to move to the new i2c framework.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/i2c/tegra_i2c.c