]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Make the config_scaling_param calls type safe
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:57:57 +0000 (15:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:03 +0000 (23:23 -0400)
commit8414bb09a412f1068ee5e40c6ab9f394b12e7fea
tree59d85a718058282f4b7f8d53151c12fcc05aa724
parent22e16ac01b9a96e0325ca83bab1c5ac540f1312b
scsi: ufs: Make the config_scaling_param calls type safe

Pass the actual type to config_scaling_param callback as the third argment
instead of a void pointer. Remove a superfluous NULL pointer check from
ufs_qcom_config_scaling_param().

Link: https://lore.kernel.org/r/20220419225811.4127248-15-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
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-qcom.c
drivers/scsi/ufs/ufshcd.h