summaryrefslogtreecommitdiffstats
path: root/drivers/fsi
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-08-06 01:26:24 +0200
committerJoel Stanley <joel@jms.id.au>2020-09-10 04:52:51 +0200
commit59165631b7e9deca0b93b029a1112f4f8f3df736 (patch)
tree34b8a950063a2ec6188290c56cebc946e197d240 /drivers/fsi
parentfsi: sbefifo: Constify sbefifo_ids (diff)
downloadlinux-59165631b7e9deca0b93b029a1112f4f8f3df736.tar.xz
linux-59165631b7e9deca0b93b029a1112f4f8f3df736.zip
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 <rikard.falkeborn@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/fsi')
-rw-r--r--drivers/fsi/fsi-scom.c2
1 files changed, 1 insertions, 1 deletions
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,