Re: [PATCH v3 79/80] scsi: ufs: Declare SCSI host template const

Peter Wang (王信友)
2024-01-04T09:52:17Z

On Wed, 2023-03-22 at 12:55 -0700, Bart Van Assche wrote:
> Make it explicit that the SCSI host template is not modified.
>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---
> drivers/ufs/core/ufshcd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 8e7dfaadc691..35a3bd95c5e4 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -8751,7 +8751,7 @@ static struct ufs_hba_variant_params
> ufs_hba_vps = {
> .ondemand_data.downdifferential = 5,
> };
>
> -static struct scsi_host_template ufshcd_driver_template = {
> +static const struct scsi_host_template ufshcd_driver_template = {
> .module = THIS_MODULE,
> .name = UFSHCD,
> .proc_name = UFSHCD,

Hi Bart,

This patch change scsi_host_templete to const.
If mediatek host want to modify deault rpm_autosuspend_delay timer,
could you have any suggestions?

Thanks.
Peter