raw/ioat: support multiple devices being tested
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 10 Sep 2020 16:47:14 +0000 (17:47 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Oct 2020 07:26:15 +0000 (09:26 +0200)
commit1c6a964075fb38200712778aeb1ba2ebe4f0f006
treecaeffbb473efe4eb8976e2409d2c857408b56655
parentf5057be340e44f3edc0fe90fa875eb89a4c49b4f
raw/ioat: support multiple devices being tested

The current selftest function uses a single global variable to track state
which implies that only a single instance can have the selftest function
called on it. Change this to an array to allow multiple instances to be
tested.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Kevin Laatz <kevin.laatz@intel.com>
drivers/raw/ioat/ioat_rawdev_test.c