Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4656cac1 authored by Takashi Iwai's avatar Takashi Iwai Committed by Ian Maund
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
Tested-by: default avatarSheng Yong <shengyong1@huawei.com>
Signed-off-by: default avatarhujianyang <hujianyang@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Git-commit: 53cd255ce7539eff28d86eafb3416a6d964be4df
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 228beeb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment