Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp116489lqo; Tue, 7 May 2024 14:08:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHfvMKzsdINMRODmwu2+QgTyxvJE/wwI09WyoUYe6ogFJ+5Ewegns2dl1hNVneyUQUe8B5OUIDuCvGa+8yC1TgL5dJem1XTx/XIq53rw== X-Google-Smtp-Source: AGHT+IEqpX4f5rFeivklXyCdIMeYO6ow3THAuiA1Pu6PANx6rnqUUhefJMWSZ2Jk8WuxU0IdBXHg X-Received: by 2002:a05:6358:720f:b0:18d:787a:4155 with SMTP id e5c5f4694b2df-192d2a12e9fmr112822155d.1.1715116112910; Tue, 07 May 2024 14:08:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715116112; cv=pass; d=google.com; s=arc-20160816; b=B8/+DfeuFXI5POpGNw3M90A3vdYo7jVKD3ADJvmi565BBt172bS9juJhlLfXPRQonK UUxkNe83/H9HMM8LJR5BxjWBNSOX9+kKlIMC4u+JiI5wbaoaM0PY0IRUmvkz+OBAaS9I cEXhJ7cMLs6aweUZcKgm9cgMfgpHmRE111VVTjYjDGQ8EwVmwY0RU5c0of15kwPgmAAQ iBNvDIrVE9Q5dlwRmnnTyKr5rX5KcDb9lFyn4Qka8+dkME6ZoEW/Tpnh+aOSpGOSnWoT nlN7gi/IDqnTEnCf6FznjHFH4BnDXWmUxMWEi0YeGuBIY+HNwMEqVRp4ThVhbYiR6t2n aEDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Uaz9NuMXfFK5d1OjTUvm52Pk7Jq970fHyoeFpKE4oP0=; fh=dLFbEWJWZyj5+qgCFa8j5Y59x8s5r4IUgDb+ytCrThE=; b=fxHZ2PDUPqAtjoRdxOfH3TMX0KB9+KGAEWF9C/9ubxZ0kVO7VlEdVOzcHI+54dFBkJ CBUrLZr4Z25WA8bGobuifpFnHUnZsd6cxvyS0JQJTVnhXBzlaq5WukxdFHiYTgX0zAGu BkTh6wygfbnTCWNlyw6XoOuCXRFnXiT0Wfo7aBj3PkiUzsdu48IG48EdRBtJw/kJsN2J 3kVlEQJo7gJgIbKqZVmIOuqG7SOtThtX9zrPI7+O5oPRhNGxqf7ttwRZugqz6T9h0dQs qxFXNhZmxFWgR2EKkCkui3RSP0OoiuaBggKyZNZO3fcrqnFcyD+K0yjYVLeueuzVt8E2 SGIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7Z1i0Xh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172192-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f5-20020a637545000000b0062c30e549acsi2053041pgn.554.2024.05.07.14.08.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 14:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172192-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7Z1i0Xh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172192-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C0C93283F61 for ; Tue, 7 May 2024 21:08:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5E2714B940; Tue, 7 May 2024 21:08:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h7Z1i0Xh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 078EE77658; Tue, 7 May 2024 21:08:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715116092; cv=none; b=UjUQDypz+GT9iXDAun7qvP+EYMSu4+GmkR1/mpXhbrHixThDd6JRTPnpeeTOiVuk7urWRZduve9dGw30uuykpuCBB+bU89G7PCGx2emoQSsgECVcNrC+px2XLFlB2pygSGQH4O6ikJsKvGIuXDa66SA4RUJ1DyJ+U76kdcsUEes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715116092; c=relaxed/simple; bh=2N1QLk52W+2c9Q6iDFOhjfPP4CuRAqXoC2EDY1JuuaQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RMIrZDpQvLOtaOC84dWzwfEzumzhquD7G6cBIFXtha1kjccUovnc2uWZ6L4n9N4ckLt7CA9zGaLNSzWAm1rT0DeVjRDtNu+XEL3t5G6YGeedfC03g0tkTNOvsrglUEikyQECI5sYd40l3u4QICHrua/dL313ALm2kA8geqKf0c8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h7Z1i0Xh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62A97C4AF17; Tue, 7 May 2024 21:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715116091; bh=2N1QLk52W+2c9Q6iDFOhjfPP4CuRAqXoC2EDY1JuuaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h7Z1i0Xh6stpuP5TEXsyM+/07LVKZoZfxmP06k1j/FCCD8EVSGC4itTi6NChIi/6s K5JpfJMtFF0FFiChhE/uBOkCg6krRA/aHdTRZa4em5DiC5bImpNGJ+WB6isCNWYELV hKhhev3GqBOCO9khnVrBWHONGGHw7AvqOKf9WGduQHLNwLcuzMtfz/29rcEMKJfsmg WTyVOnKH/xwg9A47zoD96vfIzJz2FppesiD84xpy/EvEvZ4qnqceDbDXbkwT2Jck9I 0ywpS5x4/JoPPssLRg4y3USnKTl8cisQ8oGGcoGjcceu8nev1EPqDAB30zF2NEU1q0 ZUo50o+/0hl+Q== From: Stephen Boyd To: Greg Kroah-Hartman Cc: "Ricardo B. Marliere" , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH 01/12] spmi: make spmi_bus_type const Date: Tue, 7 May 2024 14:07:38 -0700 Message-ID: <20240507210809.3479953-2-sboyd@kernel.org> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog In-Reply-To: <20240507210809.3479953-1-sboyd@kernel.org> References: <20240507210809.3479953-1-sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ricardo B. Marliere" Now that the driver core can properly handle constant struct bus_type, move the spmi_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 Link: https://lore.kernel.org/r/20240204-bus_cleanup-spmi-v1-1-ef7f278f1987@marliere.net Reviewed-by: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/spmi/spmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c index 3a60fd2e09e1..667085cb199d 100644 --- a/drivers/spmi/spmi.c +++ b/drivers/spmi/spmi.c @@ -378,7 +378,7 @@ static int spmi_drv_uevent(const struct device *dev, struct kobj_uevent_env *env return 0; } -static struct bus_type spmi_bus_type = { +static const struct bus_type spmi_bus_type = { .name = "spmi", .match = spmi_device_match, .probe = spmi_drv_probe, -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git