]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: hisi_sas: Add hisi_sas_debugfs_alloc() to centralise allocation
authorLuo Jiaxing <luojiaxing@huawei.com>
Fri, 6 Sep 2019 12:55:35 +0000 (20:55 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Sep 2019 02:28:57 +0000 (22:28 -0400)
commit7ec7082c57ecdd8d37040d31203951f7e2e8e218
tree48057dbdb95d6ab07385555ed95f660e91efa80c
parent4bc058097aa8b1af046fa000fbc6bf5408ace9bf
scsi: hisi_sas: Add hisi_sas_debugfs_alloc() to centralise allocation

We extract the code of memory allocate and construct an new function for
it. We think it's convenient for subsequent optimization.

Link: https://lore.kernel.org/r/1567774537-20003-12-git-send-email-john.garry@huawei.com
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c