From patchwork Sat Feb 3 18:25:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 196347 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp29845dyb; Sat, 3 Feb 2024 10:25:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEONZVeN+Ypfb3waSZHIUVAGbDidFiBV7hhP2IoHv95G1y/k3V0O3x/XcROMJ9bu9FYs1nh X-Received: by 2002:a19:f018:0:b0:511:3ef8:5 with SMTP id p24-20020a19f018000000b005113ef80005mr1701205lfc.34.1706984711251; Sat, 03 Feb 2024 10:25:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706984711; cv=pass; d=google.com; s=arc-20160816; b=t/OtL3Eq4t8w7oRbqouWYickZyYN3FodH9OrHqHpGtwSnmeOuwCnvkLxr1GhcC9DHA ZE1m5wD86DS1XOoBIB0wOKvnY5Qu7NtiYMzXadi5iaVuVyRtvhEnAacwV0Ftei140PPB uhQpanJRJbfqEQLRU2Hkkxq6KdiuF1Exe43graR+QyhuWkuUyUx7cHhqP4gwsrC+YR4P VRYG8XHHTbj5LGDglbSGlBrQ1QXj6fgRFYGJJIqcc+ypFPVyq0l57sgVyU2ifhN5lupW dR+FyRqrBmjKfgSqwX9U9AkxHhG97Mj/Fgqk5/FeO37CKkILxCLNeWA9slQYJsFPTnIx z46Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=KzZQL8rSLrwKDPYyaVTOC54buQP+RGECHRJE70wSEUM=; fh=RHIGDaDQn+TV5wdNVnAMpMOIgSiatPmQ7uNZ1vfm9u4=; b=aGrCz47rAqY0KYDpA/sMexUZNY6L1H1FWrpb2Z9BVclF1g6b3I5Ym6UC/Xh7OK2mUm twvsrloL548vSNYTf5sXwGMMPoGSd7MWxSYYCKUg+T+Pov28YcMMZKYbS3FGDG9XdmM6 r0tT4WfSe4NVRNeCRJI8il3b8aca5Q4RywNC9kZvQG/ciiO5+CVIJlZvDBwfEQjYqDwO Qo/IfYg11JtK3gvVqkFm4bDaeFgE4HLPiC+CoL0ttUA6vpskO1GSQeE1ckiYJicksfYn WEMg9weEzVgMBMEeB/K6TMPV9C4mUPEvmtr0HymWdyYYG1zK18ABGyBAvrwNQQubwH40 UWSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=qv2Yqelc; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51238-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51238-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUYfPGjeVgmh2QrtgLaOg2UyLAKfIJTArSyHEWsn8diTpOcePUukpZXMx88g2HGQMqzTftNs1kRgBB1F8e9Mg9PkQv39g== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cd19-20020a170906b35300b00a3527fe7c4dsi2023783ejb.67.2024.02.03.10.25.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:25:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51238-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=qv2Yqelc; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51238-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51238-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id ACBCA1F233DE for ; Sat, 3 Feb 2024 18:25:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 442735FEE8; Sat, 3 Feb 2024 18:24:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="qv2Yqelc" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5C1C5FBAE for ; Sat, 3 Feb 2024 18:24:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706984685; cv=none; b=jzXWxvvcfq+2jkLEFSagIkGOyHsN2+PSml9dxiGLGSBLxzCWn+qnQ7CWgIDkTlgT3kw9GR6xguQb+sR8Dr+Sgg+cj8HRyx2oCH9FxtHzdAIIgkQ31jWgRVx5KaAMxzUumFdjIJ0eezTDKwnTmkpkMC3l8+hYIQwPBVRFXtD0094= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706984685; c=relaxed/simple; bh=PWGIF0SB6BlBgK8TT4wQwOjd9acucA+/T3Wm8oL7Q9c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eNEyfEYLi/bV5Yhxcc3ydtigjw3iV7+XZV4XihR0UKPd71F0qwuZQSnC7LA1qFYLh84W7bHcJhLCBmRR36ti6nilFXb3Uq/3jvLkrJC4QJC+lFB7P/duBgwpVO9i6T2OU/NhV/78WN2KYaYWpaL2PGPkjHstSWt8zvLjDUk2AMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=qv2Yqelc reason="key not found in DNS"; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6e037a698cdso64399b3a.0 for ; Sat, 03 Feb 2024 10:24:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706984683; x=1707589483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KzZQL8rSLrwKDPYyaVTOC54buQP+RGECHRJE70wSEUM=; b=ol0hiyQhumQIgqXt1VRRrYgSrtqWMSFMHS56U0DqCWCNadT8jXqqlKMBI+Rd9salRs bTEkgeVIJmuz0CVZUzV/f5qTq6tmMckS/3cSix6WOnt5In27gqlcotxWfHj06XhMwkAW 7TYcTBqM1tA26PiK+hYJs9uaUm6VSyck4z6awW7WaFLTQzWyL0SOk/E6TUYvLMRyfM8Q b+rWfkmvPSbg2sW2wDpNq2btdqbyMvrY09gi+S7YVg/mtb2/voA0LfP+0UW5V+SRWpZK IN3imUqn7MXtwGCU1ryyeisQ9OgJH+4QhdNBfzlwzKoCOBHgTJqegp3UATAMVzAr240p n+zg== X-Gm-Message-State: AOJu0YwmwaQgBaA8dlnVV0XT0aVRVYm1pAZjDcbU0O5/8t88d/V0DjUJ Fvm/tE+re6bmVz1yiTGYsuK1z1kYQ3cvsqtL4r9DizMqaB7/Mx81 X-Received: by 2002:a05:6a00:99e:b0:6e0:2eae:c6a4 with SMTP id u30-20020a056a00099e00b006e02eaec6a4mr1218611pfg.26.1706984683151; Sat, 03 Feb 2024 10:24:43 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUAnhW7+7ZZR/+M3OqkVol31iBtpyxjnwRhUfxk94DLZtUWCsNi+JRv/8wJtWqleLKh6/huZxMNandBP6p4b/e5MgHuQ+QQaEeFEZFFFVbjz90N2npVCnZg4JIac8geK0XSaaR/e6u44AE/uG4cIjBoVmWlRehk4yPRhAaW0gNJuSQe8F4oDr+VIwQC/cc8JRRbKOT7TZIaQ3V/xgMcRADrgl4thCBLLmzM6bXqWvn3DRfK/B7e Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id ld9-20020a056a004f8900b006d99056c4edsm3653164pfb.187.2024.02.03.10.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:24:42 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706984681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KzZQL8rSLrwKDPYyaVTOC54buQP+RGECHRJE70wSEUM=; b=qv2Yqelci7CqWkXp2npcOdmxqHAEdbh/mnvcOkN+vXhYboPX8TiUHRiOfxneevQAzEPpub RZSECHJTdXj6mQgf6vh14WUlOgljvEbM3ywYnZ0K/Fto+mF04dqPlEQFcYywF/7z8dU4l4 wdlQ3SrqWVLM7zXCSyyjT8EGJTFg88LxbbTvAQvHIzjyAWEst43VXY2hOrFD5pTX+lNSde jk93IkcYw6e8oDAYOe1zDNA4utzygw2YaG8BXQ/qZwq9H2SL63aFVnXwNJa3wBO84CEhoh hx3U2gRiZS6DDuE5Lqvz8dRKKNcfLP2nQ5sXr6lM0ZGQRdGFQOuSBFcVYEBIEw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 15:25:03 -0300 Subject: [PATCH 1/2] drm: display: make dp_aux_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-gpu-v1-1-1b6ecdb5f941@marliere.net> References: <20240203-bus_cleanup-gpu-v1-0-1b6ecdb5f941@marliere.net> In-Reply-To: <20240203-bus_cleanup-gpu-v1-0-1b6ecdb5f941@marliere.net> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1053; i=ricardo@marliere.net; h=from:subject:message-id; bh=PWGIF0SB6BlBgK8TT4wQwOjd9acucA+/T3Wm8oL7Q9c=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvoUBQ8Ijrp8ZsUoVm9cfxF+uKmjw5CLni5fKV 6KxFLWPyFyJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6FAQAKCRDJC4p8Y4ZY pghbD/4uskt44jqKw1/ZXMHt348KW7amF7zcEnyCfk4/ychYObeyJgPQTUcTn0TD0fPB5mxbrDl qKoHCi3kJL8H2EiokwzIMDit4F75ARVBDU01eTXqkKynASAsr7HVOgi9c+hkzfFogDKcI4Sg8k3 zPrK5VvdMUcG9XW9czn7FRTlGOu09fqa0D7+6jbZ5eUaGRWGAI6leNxJKOL3cf/VTzFk4AjQt+m aXMI+UbKBbcR4c08yXKm+YQb7cwQaLRiZtxrG0p4dcxs+JDrYpSV3EAfZ/FBEVAnKcaf5r9p5Xl FZZY+vYtAvgMzKu65xSvD+XBS7TeCqWZXN3D7Hn1n61my/6lbUUxP6Jhto1If09ySKHlOQULuw+ bGIViaW/8INa6qRKWyYte9jN70yCoMpc4BfIpyaAhvtc49/RoNFlJtTGxhpUR4r4jeC/Zom6Tf2 vMUi4wVDjYDCbBfc9Caz66oxu2GB2yEpUD3tAwAjxWDP8dCJXOLtUG0bH+SI1mW+uqbDSV40QuE w+JxoohW7zNNF3NQ2zDblodV56UQUUW2XqJLhG2TyZBNkKMQ8m1dt1OyJQ4gTyJGsWyeRLKzAc3 1H/xKgxOPlfSfeiwCjlsZ+BTDZdh8uk0Uh99at4taLUlFbsjf9yBECtf/MpR4lOg39zr/g9SqRR EOSabTz+a/qCNzg== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789903200682434841 X-GMAIL-MSGID: 1789903200682434841 Now that the driver core can properly handle constant struct bus_type, move the dp_aux_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_aux_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/display/drm_dp_aux_bus.c b/drivers/gpu/drm/display/drm_dp_aux_bus.c index 8a165be1a821..5afc26be9d2a 100644 --- a/drivers/gpu/drm/display/drm_dp_aux_bus.c +++ b/drivers/gpu/drm/display/drm_dp_aux_bus.c @@ -127,7 +127,7 @@ static void dp_aux_ep_shutdown(struct device *dev) aux_ep_drv->shutdown(to_dp_aux_ep_dev(dev)); } -static struct bus_type dp_aux_bus_type = { +static const struct bus_type dp_aux_bus_type = { .name = "dp-aux", .match = dp_aux_ep_match, .probe = dp_aux_ep_probe, From patchwork Sat Feb 3 18:25:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 196348 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp30364dyb; Sat, 3 Feb 2024 10:26:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFC+VW3WShKxYGt0CJP2t+pXe5KMbc5hgOSNvWHMpAIGbqqVLeCwg5n1oacowTbJzKlGmI7 X-Received: by 2002:a05:6a20:e54f:b0:19c:a3fc:695c with SMTP id nf15-20020a056a20e54f00b0019ca3fc695cmr9354519pzb.59.1706984804853; Sat, 03 Feb 2024 10:26:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706984804; cv=pass; d=google.com; s=arc-20160816; b=Hsc50p63h6HzrMUaQ2ZUT5kJ9K7JDDHKPTl3JSr/CIN/Gv/zqnps8X34Y2Iwrr9U8s pvRb6froTjcBkjcMvZqakBXBHMZl1aTkKwrH3em4x3029fKl2mMOd/2CpRp+Xm0aZvuv yPRqOKfXyrIrmoKO02Sta7a0PmlKNje5rSfTMHgUPIz2t+WiRELy7oJZwaTc5gYniKE0 eOpM6e+ZhGANygTV1zF72whnPFXEoMVr0KbSt769WR+QYYfTngowMewCAUidMuqLqzXS lgP4aQ5ywENpZ1y8QK3CbFcZsl7b+BQDRSlq9PZxnTrMhfYA7BALvsVfOd+IystulbNi R57g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=9wvmygpMXKch9KjcDbs26g5cam8cyiZFx8cVfTokl0Q=; fh=uOhXdOZBNJOKC1jj6cUj6GyUgcgNyXwIcJMGqWjq4ZM=; b=y3Hjy6EYKnCWj+0rgDEau/55R+4n7Yl4OtAWZlBY0OGfXEzEpQDAoTjVBRfU9Z0cUt MHMZg+Ko8MAHuAVZBYMC1lwoZZBy/Uj+K4gSe0XItgFpaVDsGSE9DEXzrwFwA3fRzV0B /e3mQkYnZAtWOWOZbCkMWm1fqcaswWsEkeExXrIUB+JQLRJ8wQhmpbjjbQc3whetft5B R8qQt2UEinFiwEWa2dsGMGw+5tlVEw/7eri4H8/lOunWhKmn4guZ8UXWFmarqt6tLeGG rgwmrCCtqgozZJcanMl7nZ7ZIkelaoOh4MBxu3Lxwvc+zTWgOqpoIiUD3knYB6J3JCJn EfKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=Gzl+rbpt; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51239-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51239-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCU4MDavNzsKB+iuaiyklbxiugsYJC4wDj5WShOlgboECNlt1y0D9C+LXJccqgc8xX4nAqd4hsxS8Ej3dbtGPYfHew0Hbw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f1-20020a63e301000000b005d778417e50si3585307pgh.587.2024.02.03.10.26.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:26:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51239-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=Gzl+rbpt; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51239-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51239-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2181CB25B24 for ; Sat, 3 Feb 2024 18:25:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7173C5FF16; Sat, 3 Feb 2024 18:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="Gzl+rbpt" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B86A5FDCD for ; Sat, 3 Feb 2024 18:24:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706984688; cv=none; b=eIBFGUJfjTgCCuteK49dI5OpnexCrUXWyOhxw7gIToD5/gy/WFVJW77y1YKo0RUklgVxyTLX7hsuXPssLxRCF+hKREVysfeiDdr3fOlhcRRmAYR04Vef4b65W8Qa/ZK/KyJXPFWNAcx26elD8/3R3qGN5IjfJ7zadPpn+GraIfE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706984688; c=relaxed/simple; bh=Jb2CPAEe0Zv9sdkMFnExsmwVmtr4EceLYp23eTMTLN0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=usgbFgKdnPiwTn743n0+6ceCZwZLMm1SXe2Ym1IaJcLePH8AX9/ilaFTiaZDgIFY08wZ4XfhRDEevaqIv+rVejyEenCRilIgz2pobtIrP+6uSEXRkdO90g+/Evps0R5ITLH8vZI71OtXHJQPc1qkLBZ2G4nkBXZ0AP9szQBuu4w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=Gzl+rbpt reason="key not found in DNS"; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6daf694b439so2311607b3a.1 for ; Sat, 03 Feb 2024 10:24:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706984686; x=1707589486; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9wvmygpMXKch9KjcDbs26g5cam8cyiZFx8cVfTokl0Q=; b=e7UPHrGnUVv9rV0dqSY21VPGcz0nsKecpiqFrPvT+2FdNVcM3ctzeUMjheHV5WowfF +VFyxnnmKdNbjrfIEDGRsCkfP5/s+EviiEPH+cBML3EYzeWN7H3+IyKU2IWnUDUeN+ZH /Q0ONxMZ2/TDapQakFIrOaGvnZdAipCrU5jWihazv3/Mw1+els1t9SxbWzrEZYDeUyNV X8fGI6w7IKNcAtRLyKQuq9qASyPrM7Hwpuims+S0J2R9KriDq1MbNrc59md7+9NhLenz rT9YFTdH2jx8Ctm32nYGyo3z6joIiXM08CxcETH7N5DygLqa5IrwnOeefC80PhnvWxzK JBzg== X-Gm-Message-State: AOJu0YxffbwA3qUf05cAFk8/DYAZLfkWWI1q66Sv452DQAGOh8R/2w0C pS1tvSDpqZjz5z6gRsXELSZUGG1BKTfIA/zBnazlR1FnksQa2C2l X-Received: by 2002:a05:6a00:2b56:b0:6e0:3361:ab48 with SMTP id du22-20020a056a002b5600b006e03361ab48mr770083pfb.1.1706984686331; Sat, 03 Feb 2024 10:24:46 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUGEKQka4PJeL/5J+MzrCxnk8WdgpBGlxgHwEEaqc2IgzivGeBfvhzQUawlnZT0L4o6juNzHqaUhrTB5CycOYSXmoyBbPMIiPXnMckA606crreFBMb+r70h5O7f9De5u1Mzohx1Ja786Y1hmgHX64bUZ5Ej32DsDGQS1vzFuqSlCFFtjfdlE0wR/c+LG/KcOOY5GrAmbfbJ/CKuByMmpe6INFNy01b8/Z7p8q2DNU2I+2wN/Iow Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id m13-20020a63ed4d000000b005cf9e59477esm3979859pgk.26.2024.02.03.10.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:24:45 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706984685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9wvmygpMXKch9KjcDbs26g5cam8cyiZFx8cVfTokl0Q=; b=Gzl+rbpt03600Z5QlubY2Uz0IOXHrdFq6L09LLKOLrscLk37b4a3dHA1QCZWduMcw1ZYCv EFw2NxDVEEP8VW4tyS/ArufOSydhNEFzGOWgbTQYVdFJC2ZfmsaXer2x1j6UPhQrHcJCmC i5GGluBBcdSK0lBR+lmSybIKo9NHYea00Vtzbfo6lg0UFu2ijRWHWD+uz5OGSciKxHmmrv oZlOheH2XlsqnjAgOzJRJzbUDH8am86XqUjkj5d2ckfFPbt8f+pyyeebO6FbDBrGtoD8dM ooaPr9lj/Ezj3PuFgtNl0lLZC3xagAqCcI06Nj0deTQoTFFGcab/M4v1nQ3uEg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 15:25:04 -0300 Subject: [PATCH 2/2] drm: mipi-dsi: make mipi_dsi_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-gpu-v1-2-1b6ecdb5f941@marliere.net> References: <20240203-bus_cleanup-gpu-v1-0-1b6ecdb5f941@marliere.net> In-Reply-To: <20240203-bus_cleanup-gpu-v1-0-1b6ecdb5f941@marliere.net> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1006; i=ricardo@marliere.net; h=from:subject:message-id; bh=Jb2CPAEe0Zv9sdkMFnExsmwVmtr4EceLYp23eTMTLN0=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvoUC/Lz6356r1q0GAvsmkQCwWxHc5uvTWgroU kdL/uMoE6qJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6FAgAKCRDJC4p8Y4ZY pl10D/9i67GeFbwaTagf1GafrmidveAEGjCdW+xMz/LNxIarAFa/ouvJKDcube/GztA9Z0OXUAX 9CZhxQJhglbI/CAFkJix/ooeAVD2l5wxWlJLMvdwdj0TIZCkomI4eh/cGp0PG7WLdNo9GODNQfU o7Zdp2uWzVVFL9z/Rj01C86bVVUU+AKelJBM9D2EaTd7gPrWVinKD2r4/KnVk9m5O8JTm7Sjp9I OFpc8UOPECwR6ibfvjwroqaVvs+6eAxpSBXjmhT2h2dMRqnWrMcJnXGoRaXBl4x+TMjfTdmgN7+ r9PX6tHQq7mCh63bjRxl1j7DHNulfiIXmQpjSI5X9gzPGQ5msCOMS5uygT5Qseld3343Q7FnhVX rlSCUpaXYfU9dDKmNoWcl3tdD/DLXrRyb4Fjftlpkqphuvu7ynfe/tJHq5HM47LKa7SOYV86g4d KHln5o0G5hzTCAQR3NYcuxs7FxzyF6+TsJ/Z3hd0ULHzUhQTzOc9EP09QI14nJlzay6KFFaPkZA bs5n0kjvA8QLCBpmOhemY0l7b6ooODQCnSU0u2WFA1hd8iUnugqCrCBNBxHW532DmuchW+ADjik snN5nmZQLzF2ugSNvpQ+em677ZXlUixigIuchhPxwZjeUIySzrXrVWXN+NX0RuMCWEdrs4Vox3E xVD+kjlhTvOptWQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789903298438145672 X-GMAIL-MSGID: 1789903298438145672 Now that the driver core can properly handle constant struct bus_type, move the mipi_dsi_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_mipi_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 843a6dbda93a..ef6e416522f8 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -89,7 +89,7 @@ static const struct dev_pm_ops mipi_dsi_device_pm_ops = { .restore = pm_generic_restore, }; -static struct bus_type mipi_dsi_bus_type = { +static const struct bus_type mipi_dsi_bus_type = { .name = "mipi-dsi", .match = mipi_dsi_device_match, .uevent = mipi_dsi_uevent,