OSDN Git Service

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)
commitbec99e5250bfe1c575e72a971bc2b2b21cf6c8b4
treeaa65887a8c5eaa21d7249726f88f66e08afac7aa
parentc6131854e28a50a7e3eaf7bc900d0780772b222b
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