fsi: sbefifo: Constify sbefifo_ids
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 5 Aug 2020 23:26:23 +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 sbefifo_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-sbefifo.c

index f54df9ebc8b305bc057533a7ebf283ec43f7b6c2..bfd5e5da80209dc0f98b880aaf21df8d22103545 100644 (file)
@@ -1028,7 +1028,7 @@ static int sbefifo_remove(struct device *dev)
        return 0;
 }
 
-static struct fsi_device_id sbefifo_ids[] = {
+static const struct fsi_device_id sbefifo_ids[] = {
        {
                .engine_type = FSI_ENGID_SBE,
                .version = FSI_VERSION_ANY,