From patchwork Mon Jan 9 11:55:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ma=C3=ADra_Canal?= X-Patchwork-Id: 13093323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C70AC54EBD for ; Mon, 9 Jan 2023 11:56:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C5A2710E3EE; Mon, 9 Jan 2023 11:56:49 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6E44B10E3EE; Mon, 9 Jan 2023 11:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=NdG2SoBQNefmtCjBfqFc7RiKIKDklbD/hLdBiL+vaNg=; b=H+oOZISn35maD65qd/e1DFSUSA Y1xCH93Jp2UYe09efyPYdQdb6AF9rz6dxe9uBXF4q8XYK4znsiO3UzX6Ms+f/ghqeNv1y9/+IApe3 bczyAUjKR0U+yAJsZQ5QJNua7PGkfCHawJbXaLq6UgWXCrZE3bLoXRw9aRQOn1xIpKLMLis1Z6bsX mRj5cEVD+6uJZKSTnrZFBGITkuKji85B69mX3V2QTdShKZbscQ+C3Y3RisDMSxEZvMFhaEFdsdxkv 5385zLYDxKWDruUq1f4JYOwH0oqRiLeKUsxQ2W5ZbTOGJ2x2+oa5gVnqT1rMCSKmtw5kw8mVXxfSA DZiF/Amw==; Received: from [187.36.234.139] (helo=bowie..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pEqlP-003LkJ-68; Mon, 09 Jan 2023 12:56:27 +0100 From: =?utf-8?q?Ma=C3=ADra_Canal?= To: David Airlie , Daniel Vetter , Lucas Stach , Russell King , Christian Gmeiner , Emma Anholt , Alexey Brodkin , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Tomi Valkeinen Subject: [PATCH v2 0/7] Convert drivers to the new debugfs device-centered functions Date: Mon, 9 Jan 2023 08:55:14 -0300 Message-Id: <20230109115520.40088-1-mcanal@igalia.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , =?utf-8?q?Andr=C3=A9_Alme?= =?utf-8?q?ida?= , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The commit 1c9cacbea880 ("drm/debugfs: create device-centered debugfs functions") introduced new device-centered debugfs functions, which center the debugfs files management on the drm_device instead of drm_minor. Therefore, this patchset converts 6 drivers to this new debugfs device-centered structure as it was already performed on the vc4 (f2ede40e46e8), v3d (c0dda238e264), and vkms (03d2673bb757) drivers. Best Regards, - Maíra Canal --- v1 -> v2: https://lore.kernel.org/dri-devel/20221226155029.244355-1-mcanal@igalia.com/T/ - Drop some of the #ifdef guards and mark the potentially unused functions as __maybe_unused (Daniel Vetter). - Fix pl111 compilation error when CONFIG_DEBUG_FS=n (kernel test robot). Maíra Canal (7): drm/etnaviv: use new debugfs device-centered functions drm/pl111: use new debugfs device-centered functions drm/arc: use new debugfs device-centered functions drm/virtio: use new debugfs device-centered functions drm/omap: use new debugfs device-centered functions drm/qxl: remove unused debugfs structure drm/qxl: use new debugfs device-centered functions drivers/gpu/drm/etnaviv/etnaviv_drv.c | 29 ++++++------- drivers/gpu/drm/omapdrm/omap_debugfs.c | 29 +++++-------- drivers/gpu/drm/omapdrm/omap_drv.c | 7 +-- drivers/gpu/drm/omapdrm/omap_drv.h | 2 +- drivers/gpu/drm/pl111/Makefile | 4 +- drivers/gpu/drm/pl111/pl111_debugfs.c | 17 +++----- drivers/gpu/drm/pl111/pl111_drm.h | 2 +- drivers/gpu/drm/pl111/pl111_drv.c | 6 +-- drivers/gpu/drm/qxl/qxl_debugfs.c | 55 +++++------------------- drivers/gpu/drm/qxl/qxl_drv.c | 5 +-- drivers/gpu/drm/qxl/qxl_drv.h | 22 +--------- drivers/gpu/drm/tiny/arcpgu.c | 24 +++-------- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 17 +++----- drivers/gpu/drm/virtio/virtgpu_drv.c | 5 +-- drivers/gpu/drm/virtio/virtgpu_drv.h | 2 +- 15 files changed, 65 insertions(+), 161 deletions(-)