]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Use static attribute groups for managing connector sysfs entries
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Feb 2015 10:58:53 +0000 (11:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Feb 2015 14:02:00 +0000 (15:02 +0100)
commit6c1549099a2cf48d34448ec05e254744ef510b93
treea63ab28ab410d3d0406e1e75f7d47bde73007bf7
parentf453ade75878414426a4aae4f8c7d215915246c4
drm: Use static attribute groups for managing connector sysfs entries

Instead of manual calls of device_create_file() and
device_remove_file(), assign the static attribute groups to the device
with device_create_with_groups().  The conditionally built sysfs
entries are handled via is_visible callback.

This simplifies the code and also avoids the possible races.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_sysfs.c