From: Rikard Falkeborn Date: Wed, 5 Aug 2020 23:26:24 +0000 (+0200) Subject: fsi: scom: Constify scom_ids X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~1003^2~172^2~5 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=59165631b7e9deca0b93b029a1112f4f8f3df736;p=linux.git fsi: scom: Constify scom_ids The only usage of scom_ids is to assign its address to the id_table field in the fsi_driver struct, which is a const pointer, so make it const to allow the compiler to put it in read-only memory Signed-off-by: Rikard Falkeborn Signed-off-by: Joel Stanley --- diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c index 004dc03ccf09..b45bfab7b7f5 100644 --- a/drivers/fsi/fsi-scom.c +++ b/drivers/fsi/fsi-scom.c @@ -627,7 +627,7 @@ static int scom_remove(struct device *dev) return 0; } -static struct fsi_device_id scom_ids[] = { +static const struct fsi_device_id scom_ids[] = { { .engine_type = FSI_ENGID_SCOM, .version = FSI_VERSION_ANY,