]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Declare the quirks array const
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:57:53 +0000 (15:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:02 +0000 (23:23 -0400)
commitaa6b85870e421f3757f5b6c706e611e82a15232d
tree6bc77ea05d4c0eba2fb97f7cba4276f117d12f58
parent75502ba58e0053e83fd73d07137f2cecd3d350e7
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>
drivers/scsi/ufs/ufs-mediatek.c
drivers/scsi/ufs/ufs_quirks.h
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h