From: Takashi Iwai Date: Fri, 30 Jan 2015 19:29:31 +0000 (+0100) Subject: regulator: Build sysfs entries with static attribute groups X-Git-Tag: fixes-v4.0-rc1~183^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f802d6b6d9;p=pandora-kernel.git 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-diff-tree failed