fsi: master: Constify hub_master_ids
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 5 Aug 2020 23:26:22 +0000 (01:26 +0200)
committerJoel Stanley <joel@jms.id.au>
Thu, 10 Sep 2020 02:52:50 +0000 (12:22 +0930)
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>
drivers/fsi/fsi-master-hub.c

index 3caa2da7838ca7aab417a91a077d50593840ffd4..01f0a796111ed5a137dd5b4b549d15fad31a7870 100644 (file)
@@ -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,