]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: simplify boilerplate code for attribute groups
authorWolfram Sang <wsa@the-dreams.de>
Mon, 19 Jan 2015 19:12:24 +0000 (20:12 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 22 Jan 2015 14:26:50 +0000 (15:26 +0100)
commit6ac3ccadf3f6778fa65cf0603a72d5f394d3ab34
tree0aa6ce34b51123fa0c2d0dfa76366c17365fca57
parent8d7370b8e1d223b90e66ccee58b078b56d2e7879
i2c: simplify boilerplate code for attribute groups

Declaring attribute groups can be done with macros these days, let's use
them for consistency and readability reasons. Also, put the ATTR macros
directly below the referenced functions while we are here.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c