Commit f458c38f authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Joel Stanley

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: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
parent 31901bb7
...@@ -1028,7 +1028,7 @@ static int sbefifo_remove(struct device *dev) ...@@ -1028,7 +1028,7 @@ static int sbefifo_remove(struct device *dev)
return 0; return 0;
} }
static struct fsi_device_id sbefifo_ids[] = { static const struct fsi_device_id sbefifo_ids[] = {
{ {
.engine_type = FSI_ENGID_SBE, .engine_type = FSI_ENGID_SBE,
.version = FSI_VERSION_ANY, .version = FSI_VERSION_ANY,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment