From: Rikard Falkeborn Date: Wed, 5 Aug 2020 23:26:23 +0000 (+0200) Subject: fsi: sbefifo: Constify sbefifo_ids X-Git-Tag: v5.10-rc1~124^2~172^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f458c38f40fa7f03135b25e33884abc5fd028714;p=thirdparty%2Fkernel%2Flinux.git fsi: sbefifo: Constify sbefifo_ids 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 Signed-off-by: Joel Stanley --- diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c index f54df9ebc8b30..bfd5e5da80209 100644 --- a/drivers/fsi/fsi-sbefifo.c +++ b/drivers/fsi/fsi-sbefifo.c @@ -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,