i2c: xiic: Improve struct memory alignment
authorJaakko Laine <ext-jaakko.laine@vaisala.com>
Thu, 27 Aug 2020 14:48:47 +0000 (17:48 +0300)
committerWolfram Sang <wsa@kernel.org>
Fri, 28 Aug 2020 06:59:47 +0000 (08:59 +0200)
commit9106e45ceaafd3c3a7264c68dc5dc08874f6c8ce
treeda6d7e380bb18b0c10bd07c418236baf925c9913
parent0a9336ee133deb39f962e16b5eca2a48fec4eb52
i2c: xiic: Improve struct memory alignment

xiic_i2c struct alignment causes the struct to
take more space in memory than strictly required.
Move state -member to end of struct to get less
padding.

Signed-off-by: Jaakko Laine <ext-jaakko.laine@vaisala.com>
Suggested-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-xiic.c