Skip to content

Commit 2e67b27

Browse files
james-c-linaroHaitXu-Qcom
authored andcommitted
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]>
1 parent bc48b74 commit 2e67b27

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)