From 39f802d6b6d9a922f2c7a9165f0a7a5b819a1e3f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 30 Jan 2015 20:29:31 +0100 Subject: [PATCH] regulator: Build sysfs entries with static attribute groups Instead of calling device_create_file() manually after the device registration, put all in attribute groups and filter the unwanted ones via is_visible callback. This not only simplifies the code but also avoids the possible race between the device registration and sysfs registration. Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- Reading git-format-patch failed