From: Takashi Iwai Date: Wed, 4 Feb 2015 10:58:53 +0000 (+0100) Subject: drm: Use static attribute groups for managing connector sysfs entries X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~75^2~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=335f1a62c5a6334c4fc92c3c448d7648408d9b83;p=pandora-kernel.git 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 Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed