Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6332799rwb; Tue, 22 Nov 2022 11:49:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jDd8slUtKzurqkj5XGhYifSMeaNDnUmHmUCtcNTSL1P7h8qrrCFzPHTWRRakThDXDwVcX X-Received: by 2002:a17:902:8d93:b0:17f:8042:7223 with SMTP id v19-20020a1709028d9300b0017f80427223mr9927107plo.38.1669146580354; Tue, 22 Nov 2022 11:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669146580; cv=none; d=google.com; s=arc-20160816; b=fvmdaG9q6DRjhvLUEkotL7uwqhNf9GVu/7de2A7wq8+shTzxViTXV39rehpow6aW+2 n8Jzj1X5a8ynhD7ru97lPKtZaXW9MYYaVcuqW/5vAm6PyHIl50/uAEfarQaetTuxU+w5 tfoBa2bqazCeS1vEMbr8XPk99k26QclcWqnJk5rDgo0JI5PqmzY4GKtcU4+KpJnN7+xA CEJE87LJ8kjmdFese8MU8oypTF76dl725EH3fuUIGPy3yV9bZ9Jvk+Zwmii8n6GJzQTW TEqb3D03pSgWscjbMkCHsx34uDyTIjG2xF0Cd3DP1jeY5urfG1Kw1579veCcWFsRqlHy x78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EmO+2txS2Rw2EGmvyQ6jdYDwA9k7pvkoNCsuuvmDJUY=; b=pHpEGFflo2UvbsBHAbqvUINyDz4ElZ7olqU1vUN3I9jmq1Cl9VLznVyE6Hztcwn8FF ZViPyb6ytOU21IqcW5GOvAQzU9JMLt1WuBIYrxN39mXeCD1fNfdBuX61H2ScfC9MTBqA ngP6vyd1pwE1fD14mQWiNV5gzOcZ6qRSqOOyK2dzbaIp21+hOHtWq/HQAtKfHgjNh9rr 6SQfcBQxVtWlKADpya0JQsJWzmS17uwbZ0iK65BnkfIOhdWvoAJpTB6Wn/yTwW/WQUSy Jv8cGHUQ7yB7mbzvXXihzQcaMnOofeSKAfVwBgDvc6AVhAkf9KtiCCHHOUwrahAvH+oA kwtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=R9uWeJGj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y2-20020a170902d64200b0018725c072a3si13053573plh.539.2022.11.22.11.49.27; Tue, 22 Nov 2022 11:49:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=R9uWeJGj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234711AbiKVTFa (ORCPT + 90 others); Tue, 22 Nov 2022 14:05:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234667AbiKVTFN (ORCPT ); Tue, 22 Nov 2022 14:05:13 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D7D085A30 for ; Tue, 22 Nov 2022 11:05:13 -0800 (PST) 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:References: In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EmO+2txS2Rw2EGmvyQ6jdYDwA9k7pvkoNCsuuvmDJUY=; b=R9uWeJGj5YusbBL8SwVTfZtiBf npfPEoKZunMPychmq/ToR6zWHneq31k26Db7iA/aYbiHOQRodtRl54GudT5/apEKGUcXCzJHHD2EV J+BwOcUkGVZtBDj8mS5EE43mi/AVgkeWVee8S3ohpW0bfWToYHZ2caVKcpGClJ9WoLwE4Qu4UxVVh YyFkXMoo+OWOCZi4+UIFykNCYPD6V+eV7ChpocjVsBBsSh98SE0o/mlA6XStX/iAjcBftVeYNuYQV ixYLZW0vItlbZbj9Jgd3dnrMQIM85VMbGwpVUxI+dlLDT9A3kVk26wuc6JEIyw8WbZYq70YOU5MI4 7cCCjI1w==; Received: from [177.34.169.227] (helo=bowie..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1oxYZs-007AP3-PJ; Tue, 22 Nov 2022 20:05:05 +0100 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Oded Gabbay Cc: Melissa Wen , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Emma Anholt , Rodrigo Siqueira , Wambui Karuga , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 5/6] drm/vkms: use new debugfs device-centered functions Date: Tue, 22 Nov 2022 16:03:13 -0300 Message-Id: <20221122190314.185015-6-mcanal@igalia.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221122190314.185015-1-mcanal@igalia.com> References: <20221122190314.185015-1-mcanal@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the use of drm_debugfs_create_files() with the new drm_debugfs_add_files() function, which centers the debugfs files management on the drm_device instead of drm_minor. Signed-off-by: MaĆ­ra Canal --- drivers/gpu/drm/vkms/vkms_drv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c index 293dbca50c31..15e7e270fba2 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -91,8 +91,8 @@ static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state) static int vkms_config_show(struct seq_file *m, void *data) { - struct drm_info_node *node = (struct drm_info_node *)m->private; - struct drm_device *dev = node->minor->dev; + struct drm_debugfs_entry *entry = m->private; + struct drm_device *dev = entry->dev; struct vkms_device *vkmsdev = drm_device_to_vkms_device(dev); seq_printf(m, "writeback=%d\n", vkmsdev->config->writeback); @@ -102,14 +102,14 @@ static int vkms_config_show(struct seq_file *m, void *data) return 0; } -static const struct drm_info_list vkms_config_debugfs_list[] = { +static const struct drm_debugfs_info vkms_config_debugfs_list[] = { { "vkms_config", vkms_config_show, 0 }, }; static void vkms_config_debugfs_init(struct drm_minor *minor) { - drm_debugfs_create_files(vkms_config_debugfs_list, ARRAY_SIZE(vkms_config_debugfs_list), - minor->debugfs_root, minor); + drm_debugfs_add_files(minor->dev, vkms_config_debugfs_list, + ARRAY_SIZE(vkms_config_debugfs_list)); } static const struct drm_driver vkms_driver = { -- 2.38.1