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)
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

Simple merge