]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita507b281bc905a581ce7e523813ef7a68b5b132b
treeda6d7e380bb18b0c10bd07c418236baf925c9913
parent6abed3e91b2bff16fd9888d4f05d2d433b98292e
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