i2c: mxs: Pass the i2c_adapter around
authorMarek Vasut <marex@denx.de>
Sun, 19 Oct 2014 22:23:42 +0000 (00:23 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 29 Oct 2014 07:55:58 +0000 (08:55 +0100)
commit58a7d1c12c71b661115f3fb75431b4157c63a641
tree01d53b3e6b5235333c88715bfc0e402231f1bb91
parent1fa96e80ecd5d0daeb7c76b9ceb447b442894177
i2c: mxs: Pass the i2c_adapter around

This patch permeates the struct i2c_adapter throughout the driver,
so that it can be used to determine which adapter should be used.
Note that the driver still supports only one adapter. Note that
the patch does shuffle mxs_i2c_set_bus_speed() to the top of the
driver, but the function remains unchanged.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
drivers/i2c/mxs_i2c.c