From nobody Sat Oct 4 17:30:15 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 4905A2FD1AF for ; Thu, 14 Aug 2025 16:07:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755187633; cv=none; b=sL4pRn0m3pcjChLqNSsGjqc/9M4PIPPDqb1w7Cd9qfeNr3efv+ij8DhMTe4pE2uMtXyESpqZbOCzAWuSVN8FR9uEuyEAvYfgwykNv2mN125SnUKE6PmjIt1xcQitR7s4tndclHpsb+xwU8AapUlQPXkZ/Pvh+2gBjG6rT4YttXM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755187633; c=relaxed/simple; bh=x6+cgJsB3/bivyB/8CpTvAXJFzLNyeY5QyOEcAO/NHM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MK/6SGBgr9tYTEXl11cl4d330khrI7TkT5nllpxo52ggDufbLVYW9VjZSTdOdY7rlqB0l+IyWG0iC8S41MCUVwSSSiT9KFSCFDlUEgSAZZNotmEt8+jiPjMRiJqvOog0gDOJJl3TBGFBMYBT/vdcl4sIDSj0spBgbWA2Obcc250= 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=o++eq/c2; arc=none smtp.client-ip=209.85.128.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="o++eq/c2" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-45a1b098f43so7598795e9.2 for ; Thu, 14 Aug 2025 09:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1755187630; x=1755792430; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=WEY/dtRV5XlPcMpsbJUXrg5ckl8gnLAS3vBlRMh6s4M=; b=o++eq/c28Jh842+yI3UYFqPaH6Ns8nTnJCs0JuIhwpsl9AD0zF6Y5S5rodvefXJmq3 dP61B3sz8/Fir1F7SQ1sQmh9+cA7JUg23oHzpuf6s51oMY+/Eznqn2T+u8Swd8RC6TuK Q8pU7hNv5j+gawd6Cwf+TPLJDF/VPXKzesYLd3a+HKk2tSXqAfPKjapFrW61KjlboOWF ++XfQYeJt2ioIBPFAzDG0NSV3FFgEWv/ghd3e70DC8M7zVkGnYNDqK5cFvhu2HN8G/6n eAV394D+hsKhoWRDtB6AkPOFQ8G9LEcZiZMlJougH57VRDvWaDMbWwEEs5MMkW19oTYp d8gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755187630; x=1755792430; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WEY/dtRV5XlPcMpsbJUXrg5ckl8gnLAS3vBlRMh6s4M=; b=erTdjIUeCJmYE1B9Fb0vPXEu7EJrcEPrz3Boz8/R2C59LamshRaBqANlACn6GY3q14 YFDJzU4RaZdE8IIDb4ds7MSk1F4LcY1G0BAU2uwEGNJ8VAtajXbFgStsc9C2nUsxHOhA x+IA1NTnr+TlhbFtumeLd1+1ZYtwPmR/44VDAei09X4ZheJ/Tf5ahgxAeFXuhbAoxklq a8EavJO6T7AP/cJ9x4ZaYHN5l1sFOXo0vEZsTfUVjx9MqNebr2ouwQhwkg2c8Bp9Wsmi O8IzdYATKPzO5Dh09E/YokZ7p2P9xKrmaN5IFTtH0EKsd8OztdTO/BYx077ZGcUQOoQD yxsQ== X-Forwarded-Encrypted: i=1; AJvYcCUuVhbIoupDVTiI0kMD4JcLWnJwHATkkf9MZKtbeC0YUVRvpkUux9ymKp+8z368XPXgb75hy6EQAC7UWHQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz730r6mGhyPK6+b7drtnjxJ+Ded+GljHEd/elBILjQL3rw1VK2 tD08X4jviTb2Kgx/deTjfLT/9kZtS+ysirCmOOVYIy9t2GS+deRSKCngyNi3WrIwBkI= X-Gm-Gg: ASbGncvz49SR6eHrRj84LQcVZUoOwkkExjJKCDOxsQoWwclLXirD12NBMogErSnevv3 9uhhMXQWznSjkhkZkzyKGTOIZPN5lXv3UZXNCbemjGfZCWeGSIyxbnZ4EjSNr333SYXZWXKfycc 5d808Xsk1LbYTg3BHYj7t8GZWH14yhtLgrOrvtIuSW0umHSiBXCWN0Qt5Rw7M/vRkDFJRU6AuLF DXOtETk+NF61BM82U7tedrmN19EdhBFXx8tMubrJCOhj+RWhIXeH1ks51F8Z2FWG9blZbUFVheU a36sFHSbX5GYFuHLVyo3pKvraOWBWVq+NiiUbofpbUBf3ufBHP0SGA2ZfNFGUxPcXWtx73qqfPi UAfq4SWrB671nXXUJxkNZgqd+itx3whFWHdfzCxNgNg== X-Google-Smtp-Source: AGHT+IFs/lEP4IWVBoJgkpoH19R4IKvmXIZCDViCWIe4I0U2tewRdOz/LgHXlcznz0VkzRUCVVfEsw== X-Received: by 2002:a05:600c:19c7:b0:459:dde3:1a33 with SMTP id 5b1f17b1804b1-45a1b66e81emr29035635e9.26.1755187629543; Thu, 14 Aug 2025 09:07:09 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.76.109]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45a1c6bd172sm28363495e9.6.2025.08.14.09.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Aug 2025 09:07:09 -0700 (PDT) From: James Clark Date: Thu, 14 Aug 2025 17:06:47 +0100 Subject: [PATCH 07/13] spi: spi-fsl-lpspi: Constify devtype datas Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-james-nxp-lpspi-v1-7-9586d7815d14@linaro.org> References: <20250814-james-nxp-lpspi-v1-0-9586d7815d14@linaro.org> In-Reply-To: <20250814-james-nxp-lpspi-v1-0-9586d7815d14@linaro.org> To: Frank Li , Mark Brown , Clark Wang , Fugang Duan , Gao Pan , Fugang Duan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Larisa Grigore , Larisa Grigore , Ghennadi Procopciuc , Ciprianmarian Costea , s32@nxp.com Cc: James Clark , linux-spi@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 struct fsl_lpspi_data->devtype_data and fsl_lpspi_dt_ids that point here are already const, so these can be too. Signed-off-by: James Clark --- drivers/spi/spi-fsl-lpspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index 98da6a5d7013..332a852b746f 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -145,11 +145,11 @@ struct fsl_lpspi_data { * ERR051608 fixed or not: * https://www.nxp.com/docs/en/errata/i.MX93_1P87f.pdf */ -static struct fsl_lpspi_devtype_data imx93_lpspi_devtype_data =3D { +static const struct fsl_lpspi_devtype_data imx93_lpspi_devtype_data =3D { .prescale_max =3D 1, }; =20 -static struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data =3D { +static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data =3D { .prescale_max =3D 7, }; =20 --=20 2.34.1