aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fsi
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-08-06 01:26:22 +0200
committerJoel Stanley <joel@jms.id.au>2020-09-10 12:22:50 +0930
commit31901bb74f5618929ce94880691c8448765415ac (patch)
tree47926135da843e288ef6ffe44a220f9838336294 /drivers/fsi
parenta1d5ce111aa2f8b9d5d4db3ed85b11e53251d676 (diff)
downloadlinux-31901bb74f5618929ce94880691c8448765415ac.tar.gz
fsi: master: Constify hub_master_ids
The only usage of hub_master_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-master-hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fsi/fsi-master-hub.c b/drivers/fsi/fsi-master-hub.c
index 3caa2da7838ca7..01f0a796111ed5 100644
--- a/drivers/fsi/fsi-master-hub.c
+++ b/drivers/fsi/fsi-master-hub.c
@@ -276,7 +276,7 @@ static int hub_master_remove(struct device *dev)
return 0;
}
-static struct fsi_device_id hub_master_ids[] = {
+static const struct fsi_device_id hub_master_ids[] = {
{
.engine_type = FSI_ENGID_HUB_MASTER,
.version = FSI_VERSION_ANY,