ioat: do not downcast device pointer to void*
This code was created when spdk_pci_device wasn't available yet. Now we can use spdk_pci_device* instead of void* for extra code clarity. Change-Id: I81d440720b22a484ae3d2739e0510a021bebbafe Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/416995 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
71098fd489
commit
a784e88e35
@ -465,7 +465,7 @@ ioat_channel_start(struct spdk_ioat_chan *ioat)
|
|||||||
|
|
||||||
/* Caller must hold g_ioat_driver.lock */
|
/* Caller must hold g_ioat_driver.lock */
|
||||||
static struct spdk_ioat_chan *
|
static struct spdk_ioat_chan *
|
||||||
ioat_attach(void *device)
|
ioat_attach(struct spdk_pci_device *device)
|
||||||
{
|
{
|
||||||
struct spdk_ioat_chan *ioat;
|
struct spdk_ioat_chan *ioat;
|
||||||
uint32_t cmd_reg;
|
uint32_t cmd_reg;
|
||||||
|
@ -52,7 +52,7 @@ struct ioat_descriptor {
|
|||||||
/* One of these per allocated PCI device. */
|
/* One of these per allocated PCI device. */
|
||||||
struct spdk_ioat_chan {
|
struct spdk_ioat_chan {
|
||||||
/* Opaque handle to upper layer */
|
/* Opaque handle to upper layer */
|
||||||
void *device;
|
struct spdk_pci_device *device;
|
||||||
uint64_t max_xfer_size;
|
uint64_t max_xfer_size;
|
||||||
volatile struct spdk_ioat_registers *regs;
|
volatile struct spdk_ioat_registers *regs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user