aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Clark <[email protected]>2025-08-28 10:14:45 +0000
committerMark Brown <[email protected]>2025-09-01 12:12:28 +0000
commitfb4273faa4d0eeca8cb7265531d48eb084bcceea (patch)
tree4077204638e095d7143eab175467611d58516669
parentdt-bindings: lpspi: Document support for S32G (diff)
downloadkernel-fb4273faa4d0eeca8cb7265531d48eb084bcceea.tar.gz
kernel-fb4273faa4d0eeca8cb7265531d48eb084bcceea.zip
spi: spi-fsl-lpspi: Constify devtype datas
Add const for all devtype_data. Signed-off-by: James Clark <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--drivers/spi/spi-fsl-lpspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
index fc4d49f0717e..f16449cf42bb 100644
--- a/drivers/spi/spi-fsl-lpspi.c
+++ b/drivers/spi/spi-fsl-lpspi.c
@@ -135,11 +135,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 = {
+static const struct fsl_lpspi_devtype_data imx93_lpspi_devtype_data = {
.prescale_max = 1,
};
-static struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
+static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
.prescale_max = 7,
};