Skip to content

Commit 1302bf8

Browse files
james-c-linaroMatthewCroughan
authored andcommitted
spi: spi-fsl-lpspi: Constify devtype datas
Add const for all devtype_data. Signed-off-by: James Clark <james.clark@linaro.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20250828-james-nxp-lpspi-v2-6-6262b9aa9be4@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 45015ea commit 1302bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-fsl-lpspi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ struct fsl_lpspi_data {
135135
* ERR051608 fixed or not:
136136
* https://www.nxp.com/docs/en/errata/i.MX93_1P87f.pdf
137137
*/
138-
static struct fsl_lpspi_devtype_data imx93_lpspi_devtype_data = {
138+
static const struct fsl_lpspi_devtype_data imx93_lpspi_devtype_data = {
139139
.prescale_max = 1,
140140
};
141141

142-
static struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
142+
static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
143143
.prescale_max = 7,
144144
};
145145

0 commit comments

Comments
 (0)