From: Rikard Falkeborn Date: Wed, 5 Aug 2020 23:26:22 +0000 (+0200) Subject: fsi: master: Constify hub_master_ids X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=31901bb74f5618929ce94880691c8448765415ac;p=linux.git 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 Signed-off-by: Joel Stanley --- diff --git a/drivers/fsi/fsi-master-hub.c b/drivers/fsi/fsi-master-hub.c index 3caa2da7838ca..01f0a796111ed 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,