Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <rikard.falkeborn@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Rikard Falkeborn and committed by
Joel Stanley
f458c38f 31901bb7

+1 -1
+1 -1
drivers/fsi/fsi-sbefifo.c
··· 1028 1028 return 0; 1029 1029 } 1030 1030 1031 - static struct fsi_device_id sbefifo_ids[] = { 1031 + static const struct fsi_device_id sbefifo_ids[] = { 1032 1032 { 1033 1033 .engine_type = FSI_ENGID_SBE, 1034 1034 .version = FSI_VERSION_ANY,