tools/testing/nvdimm: Prepare nfit_ctl_test() for ND_CMD_CALL emulation
authorDan Williams <dan.j.williams@intel.com>
Mon, 20 Jul 2020 22:07:57 +0000 (15:07 -0700)
committerVishal Verma <vishal.l.verma@intel.com>
Sun, 26 Jul 2020 01:34:47 +0000 (19:34 -0600)
commitabfd4d9c828b9e1d5ff38c19eed036f707e4e213
tree56710822aa082943c8cfd60a2c9c20c0f7dd253d
parent0d47c4dfe5431abd04951a65845b3d989a704f63
tools/testing/nvdimm: Prepare nfit_ctl_test() for ND_CMD_CALL emulation

In preparation for adding a mocked implementation of the
firmware-activate bus-info command, rework nfit_ctl_test() to operate on
a local command payload wrapped in a 'struct nd_cmd_pkg'.

Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
tools/testing/nvdimm/test/nfit.c