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)
commita5eb71b207ecefac07bc36fd50b43d83c047b0ce
tree0aa6ce34b51123fa0c2d0dfa76366c17365fca57
parent90ebd0eb065168995ab400266934bf5ed498c5ae
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