Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp356832rbb; Sat, 24 Feb 2024 03:48:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWSni54J0jKOlHyl1A79EyZl4vlXxx2Evx+Ul27pAKvef/7I9SmfTFRfcPo/HarTWfcxnKve9y9oD0puIzBLL+ASwwDEqnhcJBUZyX5Cw== X-Google-Smtp-Source: AGHT+IEsifjV9e5U1QpcD0qRfUa9Xbh2/gleo17LyU99VC0CPpX8tfDLDitTkXd6Kf2zOJ1AlvDK X-Received: by 2002:a05:6a21:670b:b0:19f:8639:c24f with SMTP id wh11-20020a056a21670b00b0019f8639c24fmr3005818pzb.17.1708775299347; Sat, 24 Feb 2024 03:48:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708775299; cv=pass; d=google.com; s=arc-20160816; b=hmTDlNCX0wJLvWEEg4AEzyAJOl7Cr2EM1HeJq5/7aZnl/b7Pwk6xtDI5t3NS2n78e5 luGG7Jlj4GGaPwv3+8TlqvPfJvGfWx+Egq1QEmTJeP1W72ex5DB7EB/Ubq7SOVp4edL6 Nh0rSzC+Cc22Cfl9uEEOaIiBNx8A+0mEHUZZ/Es6bsGG3Js18ayJeJF1c9RDCTlCtLX6 kOO/Vxv9XbpeR3DtF5tH9E/ShV9GeJdgFF8xfrdi3ti6UT47UkXI6auNp+E9Yg05dM7k KJW7V4ac74SKJXqde0PyZFdEp2uHcb8WfPYOmKU77YD/FkZS/VwQ/bijhY8C1gWiILr9 kJ5A== 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=qtChYB+TgygG9shwdHbx8fKoevWTRa0yIf7GVv2xElo=; fh=6VhtCzn6pZr2D9HeZcIuBYe2DzWP/+OdIuhUMYimlac=; b=ZDd9bI4zErnKlx4ImV3VdxAcK7/r3sGxe7CNbLhgNzFjQc10sVxI4gCiJ+I+jj8exo JPojoCTh80plwv9B7paPsdPhgKsVnKMfPCsaMHarIaJ3Fp2aczV5q5eea4DNUxW7n5BZ CZ89HC7q9Wvq2tFIAUO7Bx+uYXr5sk+aG69NjiD2p9hYKm0ctQE/N1nUO+m9MU3cokEo hh4pV/fPjvFmpWpcq9JQcFTaUA43P8w9TfYqOJaeh/7s2HS/3TcAX57GKmJivsyVeumL 3c4FUvZoXs6THScBl2q4pU6PHoOVvcDmsYrb1uyGhP2Cs8cb+f4um9VrMMA6x+zvbB8n UC8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C9RvLeJW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-79613-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c3-20020a056a000ac300b006e4fc144e24si317249pfl.230.2024.02.24.03.48.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 03:48:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79613-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C9RvLeJW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-79613-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 07C29283F65 for ; Sat, 24 Feb 2024 11:48:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F61D4C3D0; Sat, 24 Feb 2024 11:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="C9RvLeJW" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 8F46347F45 for ; Sat, 24 Feb 2024 11:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708775157; cv=none; b=ETEfpMXxCHGw8cAZn3xfdvMF7ZqTb5qoIFr2+t9mhOGTID5cqST7+FunY/x5M9IFuQaHuiUfI9nxxwVwibjsicIA1r0dBvaLqeLReUp+W2+oG9uepZ3xh7iXLx3RV+hhaJFRpnMOFwf+6MohALdvtRvimgZgCVfKnIWz5e7WYcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708775157; c=relaxed/simple; bh=qePmAjtuUmkhoRgEQQyBxfVAGVP8TSqgY/vpB1bKGqE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aMv5BqVmosQKpyOt8iTbY7B+k4ULIZlj9JCkrByWU2e3ifxdh/7I4nScJprpEB0QqEtMXcmeQJyGLVdrFMhd3yNc+rhIX4tz+pInKIxI9lMtZnZCvlvsB4MioWTWkafYAEkONO403aSqRtYhCm3IwDbmAoWPnvPXpptvnXimDm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=C9RvLeJW; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a3d484a58f6so235387266b.3 for ; Sat, 24 Feb 2024 03:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708775154; x=1709379954; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qtChYB+TgygG9shwdHbx8fKoevWTRa0yIf7GVv2xElo=; b=C9RvLeJW5iaxq5inY3zmX/T9DViyc+3POeS9F97wYoXP9Gze83U520A1jQ/a+77TMc 9rZqiFvyATABvBj+WWNVBxRGH4ADF4FOfnMZIiRz03Vm3MZqbB4q38F5tKyaOC4koV+o RMTFDfnPJv3wNbOmpJeVOxyrZO2JmOuMbEIDW6ocR1M3oejrDtHZWNdY98zj6cYvY4hv UTzp7ytW2AgxH7A0vF5QJnFIcI9AVEI8ndwvaO6tj+ktvk85jPGILzZoRCbawC8G9X1+ znK08ZK8arAX0Fn4WV3SpKMRhdRNkuhNdLOjVQxwcs4TNoMDmI6BB/wD3TrBaUPr1Pn6 VX0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708775154; x=1709379954; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qtChYB+TgygG9shwdHbx8fKoevWTRa0yIf7GVv2xElo=; b=XChamYsKcIALQhPHJ4/CMgIGjkLNefCkaA9YXmFVB+QuQRcQHkqawrhAvv/YPxZ9p5 nMLADBV5kjuafFN/xYBvdg0Gue837oqCm80KZngN1yPW/+U1qOY9k0l8t4bIiAQGtM3Y bY7JAkfHocNND2TXpgpHjFnCeVl0sDSMuwZPPR4tmW5CKVRXuJ4My4/5onB7q5bH7CDr Hu4O3sUhvIhe+S7m7iiarGhmW4+XVKFavaYEIhms56ift58p8bRWM0hhDV0tChX8lMUp 1RJFfslt1WciH18PzBwxJo/e5gINbCsqIyCea5QOFnPyHpFT6XUegEUBCdapwmIPWnfl c/Vw== X-Gm-Message-State: AOJu0YzK1EsqRSCUfNMaYOuDOmXg5stDygsdcbQXXPBdwiotJN7dblIk RsI1TCuZ0BXpagTDZJmMpIug6EN0tBf3Z5yPTnuIDSnxCyAcKgugF+eURcE5u2c= X-Received: by 2002:a17:906:ae48:b0:a3f:4516:ecf2 with SMTP id lf8-20020a170906ae4800b00a3f4516ecf2mr1506415ejb.32.1708775153722; Sat, 24 Feb 2024 03:45:53 -0800 (PST) Received: from localhost.localdomain (82-132-212-111.dab.02.net. [82.132.212.111]) by smtp.gmail.com with ESMTPSA id jp10-20020a170906f74a00b00a3e209b225asm517826ejb.43.2024.02.24.03.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 03:45:53 -0800 (PST) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, "Ricardo B. Marliere" , Srinivas Kandagatla Subject: [PATCH 10/11] nvmem: core: make nvmem_layout_bus_type const Date: Sat, 24 Feb 2024 11:45:15 +0000 Message-Id: <20240224114516.86365-11-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240224114516.86365-1-srinivas.kandagatla@linaro.org> References: <20240224114516.86365-1-srinivas.kandagatla@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1198; i=srinivas.kandagatla@linaro.org; h=from:subject; bh=oroRW+eWACABp1DyN2gHfe1cb5uDZcxEYMDPbkXgEzc=; b=owEBbQGS/pANAwAKAXqh/VnHNFU3AcsmYgBl2dbMU1i5dkCaPx0DtDqGaZ2hoRzjAiH1iUJY8 FBYasybkBiJATMEAAEKAB0WIQQi509axvzi9vce3Y16of1ZxzRVNwUCZdnWzAAKCRB6of1ZxzRV N7bNB/9oDtL9RE1lkQSk0+5RrKT6y3tqPK4C7Na//B1cH9J5y0gsgL8xV+bM9rLuO1y/fdcvxQg rHThGclMwNm7fYYCT7KzVC+O0aE0UEjwb4s63rk6LDX4LGNw2GsgQ6dkrK6neGfw4qYsWHVGnzi reMRvErbDNnBl7sEDBVUVb4X/6dqEiFxR8uwwiM9UPSe5Q1wIV7+FCxKzcy+ZSVAHOjoOJtLtMO ZDGHplP6cx5r7ocgS7/ra298UTVf9wW9iVlC7R83YtQc0mDS4rox504D4c5zVvTCfpmtcGGUG9t lMCixjzcQuzTgfudNHYltBgTgpdN77S308bOh/ibTIBrtsF+ X-Developer-Key: i=srinivas.kandagatla@linaro.org; a=openpgp; fpr=ED6472765AB36EC43B3EF97AD77E3FC0562560D6 Content-Transfer-Encoding: 8bit From: "Ricardo B. Marliere" Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), the driver core can properly handle constant struct bus_type, move the nvmem_layout_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: Greg Kroah-Hartman Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/layouts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c index 6a6aa58369ff..8b5e2de138eb 100644 --- a/drivers/nvmem/layouts.c +++ b/drivers/nvmem/layouts.c @@ -45,7 +45,7 @@ static void nvmem_layout_bus_remove(struct device *dev) return drv->remove(layout); } -static struct bus_type nvmem_layout_bus_type = { +static const struct bus_type nvmem_layout_bus_type = { .name = "nvmem-layout", .match = nvmem_layout_bus_match, .probe = nvmem_layout_bus_probe, -- 2.25.1