commit | 6d459aa011cb087ed1f5c17836b032fcc670e306 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Thu Jul 05 10:57:06 2012 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jul 08 10:39:58 2012 +0100 |
tree | 5b09c984a18dc30aa6d20670b3c50753ecd103c9 | |
parent | cf09fe9c873ca0f4e2ca83e7bea03e2599a62d58 [diff] |
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 <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>