]> 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)
commitd4e26951d2caafea16f864db4b1ef7f47a561b6f
treeaa65887a8c5eaa21d7249726f88f66e08afac7aa
parent733172ba43219e8b8ae3ae593876be25caa0df8b
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