i2c-c2k: Fix i2c_c2k_xfer() to support multi-message transfers

i2c_c2k_xfer() only processed the last message in a list of multiple
messages, without even generating a warning about that. Add proper
support for multiple message transfers. Tested with a hacked TPM
driver with 4 messages.

This change also does a general cleanup of i2c_c2k_xfer(). There is no
need to call i2c_start/stop() here, these functions are called from
i2c_read/write().

Change-Id: Ic3ac48c5983f713081a97d3c07190a1a9fab14dd
1 file changed