aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-08-19 13:25:57 +0530
committerMartin K. Petersen <[email protected]>2019-08-19 22:17:54 -0400
commitd508e31df10ff1f309fddb88d7e830315bdbb93a (patch)
tree68d228be7b219f700070a8f2829222896787295a /tools/perf/scripts/python
parent78d4b1327d8bd60b58f422f6df02853c33558b11 (diff)
scsi: ufs-qcom: Make structure ufs_hba_qcom_vops constant
Static structure ufs_hba_qcom_vops, of type ufs_hba_variant_ops, is used only once, when it is passed as the second argument to function ufshcd_pltfrm_init(). In the definition of ufshcd_pltfrm_init(), its second parameter (corresponding to ufs_hba_qcom_vops) is declared as constant. Hence declare ufs_hba_qcom_vops itself constant as well to protect it from unintended modification. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <[email protected]> Reviewed-by: Vivek Gautam <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions