From patchwork Sat Nov 2 21:46:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13860243 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 68B53E67814 for ; Sat, 2 Nov 2024 21:46:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C279610E235; Sat, 2 Nov 2024 21:46:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JiiPgUm8"; dkim-atps=neutral Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2ED310E235 for ; Sat, 2 Nov 2024 21:46:36 +0000 (UTC) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a86e9db75b9so461332366b.1 for ; Sat, 02 Nov 2024 14:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730583995; x=1731188795; darn=lists.freedesktop.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=A+g2rUtrq4K4ttP0uYoloAGy4GhsQtwQ8IziC3FEUvE=; b=JiiPgUm8l5LjHeD+f3pVdL8e79PX1wm2KVe6sK1KTRjxGPfvhNZsXpNwNJSVg6e4H4 jBsTWBJmLBG9KS494pNEt1nsMYO2E1qnhAmw+aDndFERiGdiVVNOiAFUkiStY9nvA7MR K1SRLM1xIiHU6tGGFHLPVL1viH9Ro6LF9mjdCokn0W732qIIMfgqhoRD80d1247w9Wr7 PcwHaYJ5lQrRYUra3sly1Xt2/VWDSVBr98BQzmXoMHs5pSo9FQ1wPPAMd/6o5y1N01H5 VuOeRros9nWR9f4rvBSQIJeEaIJSRSJMc3qsH65NAL/bEsO4Yqt4d76lixTGZt9iX39y cmAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730583995; x=1731188795; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A+g2rUtrq4K4ttP0uYoloAGy4GhsQtwQ8IziC3FEUvE=; b=dNPJCWU+b7OAlDItHux8cKJynkY147w3YCscMTJVyLG2UOslEcQshAHDpzC8PxZKfY zAmYWTlb9sibW91tUIE6wTwVij8TArx4gKASD+xu1eV7kCQTrjCtxfyRVyKT2Egw4omz fn0vWL0rjg0L3MozcbUkSOkx7hos4ae0WLgcO6gwf6645gj8YX3qA+fxkQATXoPvhAOD XdG26a/33L9Bw2iP0/PU8NaSKWwgbPWBSX2FF5V8oOsRG1B7py/cw3JtthTiFvxe/8pk gp1KYiUUDsfVXH+ZyDzb/52FcEVQQ8mU174Uq2BaEKP3lm/aHIi6w1TIrpzOSWIu5zg3 7E0w== X-Gm-Message-State: AOJu0Yx7G9TXsMEymGhWt43qwgXGA5c1ju0lb1/bRNewTpRm9kWq7F5S piRlfI/ZSUrjdXKNWpp0+hXB2VGYgW8ErwdlX9PmOO9M+krumLH/ X-Google-Smtp-Source: AGHT+IHT1GPb4eb1Gm6Pd/aRec2QHGpROBbVgLwcCddjBRZYRovKVHUfATeuTnPcQDsVHhCmtPXiLQ== X-Received: by 2002:a17:907:724d:b0:a9a:80f9:d4e0 with SMTP id a640c23a62f3a-a9e5097277emr723932366b.34.1730583994769; Sat, 02 Nov 2024 14:46:34 -0700 (PDT) Received: from ?IPV6:2a02:3100:a029:9600:b581:b80a:431b:19ed? (dynamic-2a02-3100-a029-9600-b581-b80a-431b-19ed.310.pool.telefonica.de. [2a02:3100:a029:9600:b581:b80a:431b:19ed]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a9e5668497csm348193366b.220.2024.11.02.14.46.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Nov 2024 14:46:33 -0700 (PDT) Message-ID: <5090bc78-f765-4d2b-af83-c64f894df156@gmail.com> Date: Sat, 2 Nov 2024 22:46:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 1/3] drm/sysfs: Drop unused drm_class_device_(un)register From: Heiner Kallweit To: Oded Gabbay , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Hans de Goede , Dmitry Baryshkov Cc: "open list:AMD KFD" References: Content-Language: en-US Autocrypt: addr=hkallweit1@gmail.com; keydata= xsFNBF/0ZFUBEAC0eZyktSE7ZNO1SFXL6cQ4i4g6Ah3mOUIXSB4pCY5kQ6OLKHh0FlOD5/5/ sY7IoIouzOjyFdFPnz4Bl3927ClT567hUJJ+SNaFEiJ9vadI6vZm2gcY4ExdIevYHWe1msJF MVE4yNwdS+UsPeCF/6CQQTzHc+n7DomE7fjJD5J1hOJjqz2XWe71fTvYXzxCFLwXXbBiqDC9 dNqOe5odPsa4TsWZ09T33g5n2nzTJs4Zw8fCy8rLqix/raVsqr8fw5qM66MVtdmEljFaJ9N8 /W56qGCp+H8Igk/F7CjlbWXiOlKHA25mPTmbVp7VlFsvsmMokr/imQr+0nXtmvYVaKEUwY2g 86IU6RAOuA8E0J5bD/BeyZdMyVEtX1kT404UJZekFytJZrDZetwxM/cAH+1fMx4z751WJmxQ J7mIXSPuDfeJhRDt9sGM6aRVfXbZt+wBogxyXepmnlv9K4A13z9DVLdKLrYUiu9/5QEl6fgI kPaXlAZmJsQfo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Trn9MsPoUc8qI72mVpxEXQDLlrd2ijEWm7Nrf52YMD7hL6rXXuis7R6zY8WnnBhW0uCfhajx q+KuARXC0sDLztcjaS3ayXonpoCPZep2Bd5xqE4Ln8/COCslP7E92W1uf1EcdXXIrx1acg21 H/0Z53okMykVs3a8tECPHIxnre2UxKdTbCEkjkR4V6JyplTS47oWMw3zyI7zkaadfzVFBxk2 lo/Tny+FX1Azea3Ce7oOnRUEZtWSsUidtIjmL8YUQFZYm+JUIgfRmSpMFq8JP4VH43GXpB/S OCrl+/xujzvoUBFV/cHKjEQYBxo+MaiQa1U54ykM2W4DnHb1UiEf5xDkFd4= In-Reply-To: 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Only user of these functions was TTM code which dropped sysfs interfaces in commit ed89fff97382 ("drm/ttm: drop sysfs directory"). So remove these now unused functions. Reviewed-by: Dmitry Baryshkov Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/drm_sysfs.c | 32 -------------------------------- include/drm/drm_sysfs.h | 3 --- 2 files changed, 35 deletions(-) diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index fb3bbb6ad..3bc90fe5c 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c @@ -548,35 +548,3 @@ struct device *drm_sysfs_minor_alloc(struct drm_minor *minor) put_device(kdev); return ERR_PTR(r); } - -/** - * drm_class_device_register - register new device with the DRM sysfs class - * @dev: device to register - * - * Registers a new &struct device within the DRM sysfs class. Essentially only - * used by ttm to have a place for its global settings. Drivers should never use - * this. - */ -int drm_class_device_register(struct device *dev) -{ - if (!drm_class || IS_ERR(drm_class)) - return -ENOENT; - - dev->class = drm_class; - return device_register(dev); -} -EXPORT_SYMBOL_GPL(drm_class_device_register); - -/** - * drm_class_device_unregister - unregister device with the DRM sysfs class - * @dev: device to unregister - * - * Unregisters a &struct device from the DRM sysfs class. Essentially only used - * by ttm to have a place for its global settings. Drivers should never use - * this. - */ -void drm_class_device_unregister(struct device *dev) -{ - return device_unregister(dev); -} -EXPORT_SYMBOL_GPL(drm_class_device_unregister); diff --git a/include/drm/drm_sysfs.h b/include/drm/drm_sysfs.h index 96a5d8584..929d957e4 100644 --- a/include/drm/drm_sysfs.h +++ b/include/drm/drm_sysfs.h @@ -7,9 +7,6 @@ struct device; struct drm_connector; struct drm_property; -int drm_class_device_register(struct device *dev); -void drm_class_device_unregister(struct device *dev); - void drm_sysfs_hotplug_event(struct drm_device *dev); void drm_sysfs_connector_hotplug_event(struct drm_connector *connector); void drm_sysfs_connector_property_event(struct drm_connector *connector, From patchwork Sat Nov 2 21:47:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13860244 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 72AD1E67815 for ; Sat, 2 Nov 2024 21:47:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E6F3410E312; Sat, 2 Nov 2024 21:47:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EKFL9ajj"; dkim-atps=neutral Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F90710E23F for ; Sat, 2 Nov 2024 21:47:28 +0000 (UTC) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a99eb8b607aso368550166b.2 for ; Sat, 02 Nov 2024 14:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730584046; x=1731188846; darn=lists.freedesktop.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=THq4UY707sPbt8T/yvPZDWrjL5RllwmOO/4ANna77XA=; b=EKFL9ajjqkD4PTua5K3w5KuGHEOOzbTBq6H13kHp/8ofOW6V+YlqX1ZNHUFbXy8HuO QTozOYg+vV3LkLeVlCL7I0SFQLX16q90i5hNHb1WnsWz+CSo4Czye+sGOtglEL1M552P S/TaPhOgKsFmLqxbhmkMez/Pptsi+AFEd/6KEYkVjJTnL9VfAT3CKjA4kfkNjyhOOGY8 JLQLgCHHkMVl7r+d6PGkRDCe1aO+rX+AoKupB6hyvtDWFr7nSqh4UnQudtj38DEhM9iN ZD+2OdwcuinyQ/e2l5Lq/3KXei81qa0qe+qlBgSS61pgOiHePE0nVPRFOQ0TxPVRiJ8D QEwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730584046; x=1731188846; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=THq4UY707sPbt8T/yvPZDWrjL5RllwmOO/4ANna77XA=; b=VbjMP//ZexeqNYFwUH8mjdjMWhIkU8P/4AbQjRENrJzJTe+PlVMeHv/On9G41VFGd2 +ZeWTXjTBbmPJIuGBy9pkKN96hlbjo2KfanQyjiVOpwaRoPg9kzDO5f8wvLO5IFCtoVZ 1aXtmFNjt3Cyl/YIviyPzj8TEu9LD2hf5+Km0LZxoID1XBy5SENBFbMt6kMoXi9OSn84 i/WjaiZrps426GK7QnGh3QiF0A5Zq4v9wG7ExX6q33wATl41K630VvUU6idiOJuAQC9+ 2yYCGJGg/kPLQtbMpeOCfMHRU6tiga9+JGIMFYNKNIVowyaFxcFYcH0wTzgDdMVpCCyT 8WBA== X-Gm-Message-State: AOJu0YwcXQclSlKT24dNhaATnjc4jaHjXx6G4SeNaNhpBKgEmgob/YKW IcLjg7EQW8PVzY8UscL19ylpr2vn8qWneFXQaGKt7ST6t/w8NvsW X-Google-Smtp-Source: AGHT+IGUFDk2guClmnF9kjnVpqMvhPrkTOgErgeEASmpslpabfJKjjbf787eWJ2BI5XeXYGiKHM39g== X-Received: by 2002:a17:907:8686:b0:a99:4615:f58c with SMTP id a640c23a62f3a-a9de5d6eb9emr2875779066b.2.1730584046431; Sat, 02 Nov 2024 14:47:26 -0700 (PDT) Received: from ?IPV6:2a02:3100:a029:9600:b581:b80a:431b:19ed? (dynamic-2a02-3100-a029-9600-b581-b80a-431b-19ed.310.pool.telefonica.de. [2a02:3100:a029:9600:b581:b80a:431b:19ed]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a9e565df93csm346460966b.122.2024.11.02.14.47.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Nov 2024 14:47:26 -0700 (PDT) Message-ID: <57e2153a-4128-4bdb-8e15-59dfe3dd8a9e@gmail.com> Date: Sat, 2 Nov 2024 22:47:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 2/3] drm/sysfs: Remove device type drm_sysfs_device_minor From: Heiner Kallweit To: Oded Gabbay , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Hans de Goede , Dmitry Baryshkov Cc: "open list:AMD KFD" References: Content-Language: en-US Autocrypt: addr=hkallweit1@gmail.com; keydata= xsFNBF/0ZFUBEAC0eZyktSE7ZNO1SFXL6cQ4i4g6Ah3mOUIXSB4pCY5kQ6OLKHh0FlOD5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8OK2d2j4FfF++ AzOMdW09JVqejQARAQABwsF2BBgBCAAgFiEEbF+pj/I7JePKMl6Fct6KD1TwOgwFAl/0ZFUC GwwACgkQct6KD1TwOgxUfg//eAoYc0Vm4NrxymfcY30UjHVD0LgSvU8kUmXxil3qhFPS7KA+ y7tgcKLHOkZkXMX5MLFcS9+SmrAjSBBV8omKoHNo+kfFx/dUAtz0lot8wNGmWb+NcHeKM1eb nwUMOEa1uDdfZeKef/U/2uHBceY7Gc6zPZPWgXghEyQMTH2UhLgeam8yglyO+A6RXCh+s6ak Wje7Vo1wGK4eYxp6pwMPJXLMsI0ii/2k3YPEJPv+yJf90MbYyQSbkTwZhrsokjQEaIfjrIk3 rQRjTve/J62WIO28IbY/mENuGgWehRlTAbhC4BLTZ5uYS0YMQCR7v9UGMWdNWXFyrOB6PjSu Trn9MsPoUc8qI72mVpxEXQDLlrd2ijEWm7Nrf52YMD7hL6rXXuis7R6zY8WnnBhW0uCfhajx q+KuARXC0sDLztcjaS3ayXonpoCPZep2Bd5xqE4Ln8/COCslP7E92W1uf1EcdXXIrx1acg21 H/0Z53okMykVs3a8tECPHIxnre2UxKdTbCEkjkR4V6JyplTS47oWMw3zyI7zkaadfzVFBxk2 lo/Tny+FX1Azea3Ce7oOnRUEZtWSsUidtIjmL8YUQFZYm+JUIgfRmSpMFq8JP4VH43GXpB/S OCrl+/xujzvoUBFV/cHKjEQYBxo+MaiQa1U54ykM2W4DnHb1UiEf5xDkFd4= In-Reply-To: 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Only user of this device type was struct dev_pm_ops of drm_class which was removed in d14d2a8453d6 ("drm: Remove dev_pm_ops from drm_class"). So remove this now unused device type. Signed-off-by: Heiner Kallweit Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_sysfs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 3bc90fe5c..82e2d0c0d 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c @@ -50,10 +50,6 @@ * drm_connector_unregister(). */ -static struct device_type drm_sysfs_device_minor = { - .name = "drm_minor" -}; - static struct device_type drm_sysfs_device_connector = { .name = "drm_connector", }; @@ -531,7 +527,6 @@ struct device *drm_sysfs_minor_alloc(struct drm_minor *minor) kdev->devt = MKDEV(DRM_MAJOR, minor->index); kdev->class = drm_class; - kdev->type = &drm_sysfs_device_minor; } kdev->parent = minor->dev->dev; From patchwork Sat Nov 2 21:48:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13860245 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 B9EE6E67815 for ; Sat, 2 Nov 2024 21:48:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BAE510E23F; Sat, 2 Nov 2024 21:48:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kM/TNnO7"; dkim-atps=neutral Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C93010E23F for ; Sat, 2 Nov 2024 21:48:45 +0000 (UTC) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5c957d8bce2so1611266a12.2 for ; Sat, 02 Nov 2024 14:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730584124; x=1731188924; darn=lists.freedesktop.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=F+cQuMPHnFKLQq2oofuhrwR0RfVkYFzuEHqqDzj6+VU=; b=kM/TNnO77MVO5STx1wAULes/FWdvwGwFJZs61CT7tFekl6AN5Vc7c0+UULKiEXLZB7 VkkhIVlkcnBugmkzkdfhoqaL9l/WV4DX7ly5Yukk+q0+hYCA7shnrAsGmpWD5hYdU5vb /y+6IEAtmR7pGlMiRMu/d/o/WJTsUdvtb95EGRYsukM8QIik9rZX73OTrEVwsTcRmRai u7KQN7+iPP4yunX/BaQfjc0lZNadoibYFJ1AwFfBxISrIFJRtpnlO3WTMUF+bYX9x3zM opkzR+IPqkv5vC19svpDFTeJ1hoOqBK3ae6Sg/ECPuPg3kjlJgWjBt6f5aKO9izouvDm BeGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730584124; x=1731188924; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=F+cQuMPHnFKLQq2oofuhrwR0RfVkYFzuEHqqDzj6+VU=; b=IzaF7I9OccX18rlQjfsNFhB8sCXW7QOdMHaEyR+cc9qmuI9GVm7xlESad59Za3wf9X 0vtuXveSMJGzISko8k5ZnWJgOl+I1g2ro0eGKSVgYHg73DxdwtmUAJNAXAS055Ji8O2O 4nrdYC+BLBRasFR+NVuNq5dHW0B8mBGnJ7X9OuIGqnv3l1iNPxTiSan4SLlrqWCFjMza PJDL39QhacUq11qnBuUYYsOSUqK5zq8UF3Z2Z9cLWcbsMTd6T2588DRatuuI7pCxu3ot 2KX8y1ERAPUa1b2OfMkYv9xuAiGkCoO+Z1Aai6Dwx9i+fqJ7AnfrXNcQUUxAwahadG0k PADw== X-Gm-Message-State: AOJu0Yww6jf2j5NlJKhCXHVw67vh15ai5SPe1B/M4gCjNMx6I6TG0qrt YKmDkLdNFMIAMleyG/5BzXnUI5rxLrXv6xtsOtRIl6LXisvHuyKm X-Google-Smtp-Source: AGHT+IGWVCDWRrRZaFaY2L5AULjCybTGt7FChdQ5ps496Ir6jHykWKH8+BTfp4szWUfoF3CYfFhqHQ== X-Received: by 2002:a05:6402:22d1:b0:5c9:4631:c47e with SMTP id 4fb4d7f45d1cf-5ceb9264360mr6701110a12.13.1730584123704; Sat, 02 Nov 2024 14:48:43 -0700 (PDT) Received: from ?IPV6:2a02:3100:a029:9600:b581:b80a:431b:19ed? (dynamic-2a02-3100-a029-9600-b581-b80a-431b-19ed.310.pool.telefonica.de. [2a02:3100:a029:9600:b581:b80a:431b:19ed]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-5ceac74c9acsm2801816a12.5.2024.11.02.14.48.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Nov 2024 14:48:43 -0700 (PDT) Message-ID: <49a43f15-4a2e-4a9b-885b-0bb809969abe@gmail.com> Date: Sat, 2 Nov 2024 22:48:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 3/3] drm/sysfs: Constify struct drm_sysfs_device_connector From: Heiner Kallweit To: Oded Gabbay , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Hans de Goede , Dmitry Baryshkov Cc: "open list:AMD KFD" References: Content-Language: en-US Autocrypt: addr=hkallweit1@gmail.com; keydata= xsFNBF/0ZFUBEAC0eZyktSE7ZNO1SFXL6cQ4i4g6Ah3mOUIXSB4pCY5kQ6OLKHh0FlOD5/5/ sY7IoIouzOjyFdFPnz4Bl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ARAQABwsF2BBgBCAAgFiEEbF+pj/I7JePKMl6Fct6KD1TwOgwFAl/0ZFUC GwwACgkQct6KD1TwOgxUfg//eAoYc0Vm4NrxymfcY30UjHVD0LgSvU8kUmXxil3qhFPS7KA+ y7tgcKLHOkZkXMX5MLFcS9+SmrAjSBBV8omKoHNo+kfFx/dUAtz0lot8wNGmWb+NcHeKM1eb nwUMOEa1uDdfZeKef/U/2uHBceY7Gc6zPZPWgXghEyQMTH2UhLgeam8yglyO+A6RXCh+s6ak Wje7Vo1wGK4eYxp6pwMPJXLMsI0ii/2k3YPEJPv+yJf90MbYyQSbkTwZhrsokjQEaIfjrIk3 rQRjTve/J62WIO28IbY/mENuGgWehRlTAbhC4BLTZ5uYS0YMQCR7v9UGMWdNWXFyrOB6PjSu Trn9MsPoUc8qI72mVpxEXQDLlrd2ijEWm7Nrf52YMD7hL6rXXuis7R6zY8WnnBhW0uCfhajx q+KuARXC0sDLztcjaS3ayXonpoCPZep2Bd5xqE4Ln8/COCslP7E92W1uf1EcdXXIrx1acg21 H/0Z53okMykVs3a8tECPHIxnre2UxKdTbCEkjkR4V6JyplTS47oWMw3zyI7zkaadfzVFBxk2 lo/Tny+FX1Azea3Ce7oOnRUEZtWSsUidtIjmL8YUQFZYm+JUIgfRmSpMFq8JP4VH43GXpB/S OCrl+/xujzvoUBFV/cHKjEQYBxo+MaiQa1U54ykM2W4DnHb1UiEf5xDkFd4= In-Reply-To: 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Constify struct drm_sysfs_device_connector to eliminate the risk of code trying to change it. Signed-off-by: Heiner Kallweit Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 82e2d0c0d..c6b95fa06 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c @@ -50,7 +50,7 @@ * drm_connector_unregister(). */ -static struct device_type drm_sysfs_device_connector = { +static const struct device_type drm_sysfs_device_connector = { .name = "drm_connector", };