Takashi Iwai 53cd255ce7 UBI: Use static class and attribute groups
This patch cleans up the manual device_create_file() or
class_create_file() calls by replacing with static attribute groups.
It simplifies the code and also avoids the possible races between the
device/class registration and sysfs creations.

For the simplification, also make ubi_class a static instance with
initializers, too.

Amend a bit by Hujianyang.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2015-06-02 13:16:25 +02:00
..
2015-03-26 12:07:18 +01:00
2015-04-13 21:05:17 +02:00
2015-04-13 21:05:17 +02:00
2015-03-26 22:46:02 +01:00
2015-04-13 21:05:17 +02:00
2014-11-07 15:14:09 +02:00
2015-03-26 22:47:38 +01:00
2015-03-26 22:47:38 +01:00