fpga: tests: use KUnit devices instead of platform devices
authorMarco Pagani <marpagan@redhat.com>
Fri, 29 Mar 2024 17:48:47 +0000 (18:48 +0100)
committerXu Yilun <yilun.xu@linux.intel.com>
Tue, 9 Apr 2024 04:13:15 +0000 (12:13 +0800)
commit4d2bc3f7dea4d17243924c6758e0447cc1aa0eea
tree1329e7a09641bbd0e81b5ab70dc3ba0bee5c1870
parentf6c86fdf3716c9257612f8f001c6e95db84fb844
fpga: tests: use KUnit devices instead of platform devices

KUnit now provides helper functions to create fake devices, so use them
instead of relying on platform devices.

Other changes: remove an unnecessary white space in the fpga region suite.

Reviewed-by: Russ Weight <russ.weight@linux.dev>
Signed-off-by: Marco Pagani <marpagan@redhat.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20240329174849.248243-1-marpagan@redhat.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/tests/fpga-bridge-test.c
drivers/fpga/tests/fpga-mgr-test.c
drivers/fpga/tests/fpga-region-test.c