dmaengine: idxd: remove detection of device type
authorDave Jiang <dave.jiang@intel.com>
Thu, 15 Apr 2021 23:38:09 +0000 (16:38 -0700)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Apr 2021 11:13:53 +0000 (16:43 +0530)
commit435b512dbc0dac42b34348393049b386bb1a19bd
tree9d2c9993b952f873ad14943266db611407c5c746
parent4b73e4ebd43ce48101a4c09bf13d439a954d61c5
dmaengine: idxd: remove detection of device type

Move all static data type for per device type to an idxd_driver_data data
structure. The data can be attached to the pci_device_id and provided by
the pci probe function. This removes a lot of unnecessary type detection
and setup code.

Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161852988924.2203940.2787590808682466398.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/cdev.c
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/submit.c
drivers/dma/idxd/sysfs.c