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

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

authored by

Rikard Falkeborn and committed by
Joel Stanley
31901bb7 a1d5ce11

+1 -1
+1 -1
drivers/fsi/fsi-master-hub.c
··· 276 276 return 0; 277 277 } 278 278 279 - static struct fsi_device_id hub_master_ids[] = { 279 + static const struct fsi_device_id hub_master_ids[] = { 280 280 { 281 281 .engine_type = FSI_ENGID_HUB_MASTER, 282 282 .version = FSI_VERSION_ANY,