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.