Re: [PATCH v2 1/2] scsi: ufs: Prepare to add HCI capabilities sysfs
From: Bart Van Assche
Date: Tue Aug 06 2024 - 18:01:23 EST
On 8/4/24 12:21 AM, Avri Altman wrote:
- up(&hba->host_sem);
- return ret;
+ return sysfs_emit(buf, "%d\n", ufshcd_ahit_to_us(ahit));
}
All ufshcd_read_hci_reg() callers call sysfs_emit(). How about renaming
ufshcd_read_hci_reg() into ufshcd_show_hci_reg(), adding an argument
that indicates how the result should be formatted and moving the
sysfs_emit() call into ufshcd_show_hci_reg()?
Thanks,
Bart.