mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
qcacld-3.0: Use vtable for unit test ioctl
Convert the current hard-coded list of unit-test callbacks in hdd_we_unit_test() to a vtable. This streamlines future additions. Change-Id: I216bbb6699ae50eaa96ac559999cb42ba080867c CRs-Fixed: 2358606
This commit is contained in:
parent
9f383bfc0b
commit
7d038e52b4
2 changed files with 57 additions and 25 deletions
|
|
@ -552,21 +552,12 @@ uint32_t dsc_unit_test(void)
|
|||
{
|
||||
uint32_t errors = 0;
|
||||
|
||||
dsc_debug("Starting dsc component tests");
|
||||
|
||||
errors += dsc_test_create_destroy();
|
||||
errors += dsc_test_driver_trans_blocks();
|
||||
errors += dsc_test_psoc_trans_blocks();
|
||||
errors += dsc_test_vdev_trans_blocks();
|
||||
errors += dsc_test_trans_wait();
|
||||
|
||||
if (errors) {
|
||||
dsc_err("FAIL: %u dsc component tests failed!", errors);
|
||||
return errors;
|
||||
}
|
||||
|
||||
dsc_info("PASS: dsc component tests passed successfully");
|
||||
|
||||
return 0;
|
||||
return errors;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue