From 335f1a62c5a6334c4fc92c3c448d7648408d9b83 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 4 Feb 2015 11:58:53 +0100 Subject: [PATCH] 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-format-patch failed