i2c: i2c-dev: Create 'name' attribute automatically
authorGuenter Roeck <linux@roeck-us.net>
Fri, 27 Sep 2013 02:36:11 +0000 (19:36 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Sep 2013 04:02:31 +0000 (06:02 +0200)
The 'name' attribute is needed for all i2c-dev class devices, meaning
it can be created automatically by pointing to it in the class data
structure. This simplifies the code and reduces the probability for race
conditions (the name attribute should exist by the time the device is
announced to user space).

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

No differences found