From: Lars-Peter Clausen Date: Thu, 5 Jul 2012 08:57:06 +0000 (+0200) Subject: iio:trigger: Register sysfs file statically X-Git-Tag: v3.6-rc1~100^2~335^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d459aa011cb087ed1f5c17836b032fcc670e306;p=pandora-kernel.git iio:trigger: Register sysfs file statically The name sysfs attribute is the same for all triggers, so there is no need to register them dynamically at runtime. Create a attribute group for it and set it up for the bus attribute group. This also avoids a possible race condition where the uevent for the device is sent before the name sysfs attribute has been added. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed