Re: [PATCH] regulator: Build sysfs entries with static attribute groups

2015-02-02 Thread Mark Brown
On Fri, Jan 30, 2015 at 08:29:31PM +0100, Takashi Iwai wrote: > 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 rac

[PATCH] regulator: Build sysfs entries with static attribute groups

2015-01-30 Thread Takashi Iwai
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-