]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Reduce some indirection in v3 hw driver
authorJohn Garry <john.garry@huawei.com>
Tue, 24 Nov 2020 08:46:32 +0000 (16:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Dec 2020 04:41:31 +0000 (23:41 -0500)
commit220253f7d9f0140f1e4b923ab13a040d43e2f7be
treeaa65887a8c5eaa21d7249726f88f66e08afac7aa
parente558d9c8c7ab0060a57ce50e10050ba123cdbd60
scsi: hisi_sas: Reduce some indirection in v3 hw driver

Sometimes local functions are called indirectly from the hw driver, which
only makes the code harder to follow. Remove these.

Method .hw_init is only called from platform driver probe, which is not
relevant, so don't set this either.

Link: https://lore.kernel.org/r/1606207594-196362-2-git-send-email-john.garry@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_v3_hw.c