commit | 335f1a62c5a6334c4fc92c3c448d7648408d9b83 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Feb 04 11:58:53 2015 +0100 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Wed Feb 04 15:02:00 2015 +0100 |
tree | a63ab28ab410d3d0406e1e75f7d47bde73007bf7 | |
parent | 083500baefd5f4c215a5a93aef2492c1aa775828 [diff] |
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>