diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-04-19 15:57:53 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-04-25 23:23:02 -0400 |
commit | aead21f32ae787af140233e32e18801dfd5185b1 (patch) | |
tree | 6bc77ea05d4c0eba2fb97f7cba4276f117d12f58 /drivers/scsi/ufs/ufs_quirks.h | |
parent | 25eff2f543b11597a6200c55ca3a1bdf0a77bf9f (diff) | |
download | linux-aead21f32ae787af140233e32e18801dfd5185b1.tar.gz linux-aead21f32ae787af140233e32e18801dfd5185b1.tar.bz2 linux-aead21f32ae787af140233e32e18801dfd5185b1.zip |
scsi: ufs: Declare the quirks array const
Declare the quirks array and also its 'model' member const to make it
explicit that these are not modified.
Link: https://lore.kernel.org/r/20220419225811.4127248-11-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufs_quirks.h')
-rw-r--r-- | drivers/scsi/ufs/ufs_quirks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufs_quirks.h b/drivers/scsi/ufs/ufs_quirks.h index e38dec5f0351..bcb4f004bed5 100644 --- a/drivers/scsi/ufs/ufs_quirks.h +++ b/drivers/scsi/ufs/ufs_quirks.h @@ -25,7 +25,7 @@ */ struct ufs_dev_quirk { u16 wmanufacturerid; - u8 *model; + const u8 *model; unsigned int quirk; }; |