summaryrefslogtreecommitdiff
path: root/drivers/regulator/lp8755.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-30 22:29:31 +0300
committerMark Brown <broonie@kernel.org>2015-02-02 23:01:51 +0300
commit39f802d6b6d9a922f2c7a9165f0a7a5b819a1e3f (patch)
tree3d98fc2cefaeb33c3208813e64765204d26b6ab8 /drivers/regulator/lp8755.c
parent39138818a4f5c62d70f35504477c2509f982f211 (diff)
downloadlinux-39f802d6b6d9a922f2c7a9165f0a7a5b819a1e3f.tar.xz
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 <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/lp8755.c')
0 files changed, 0 insertions, 0 deletions