Skip to content

Commit

Permalink
fsi: scom: Constify scom_ids
Browse files Browse the repository at this point in the history
The only usage of scom_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 <[email protected]>
Signed-off-by: Joel Stanley <[email protected]>
  • Loading branch information
rikardfalkeborn authored and shenki committed Sep 10, 2020
1 parent f458c38 commit 5916563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/fsi/fsi-scom.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ static int scom_remove(struct device *dev)
return 0;
}

static struct fsi_device_id scom_ids[] = {
static const struct fsi_device_id scom_ids[] = {
{
.engine_type = FSI_ENGID_SCOM,
.version = FSI_VERSION_ANY,
Expand Down

0 comments on commit 5916563

Please sign in to comment.