Skip to content

Commit

Permalink
crypto: qat - use PCI_VDEVICE
Browse files Browse the repository at this point in the history
Build pci_device_id structure using the PCI_VDEVICE macro.
This removes any references to the ADF_SYSTEM_DEVICE macro.

Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Giovanni Cabiddu <[email protected]>
Reviewed-by: Fiona Trahe <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
gcabiddu authored and herbertx committed Sep 18, 2020
1 parent 92db319 commit 37b15fa
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 30 deletions.
7 changes: 2 additions & 5 deletions drivers/crypto/qat/qat_c3xxx/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_c3xxx_hw_data.h"

#define ADF_SYSTEM_DEVICE(device_id) \
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}

static const struct pci_device_id adf_pci_tbl[] = {
ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_C3XXX),
{0,}
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_C3XXX), },
{ }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

Expand Down
7 changes: 2 additions & 5 deletions drivers/crypto/qat/qat_c3xxxvf/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_c3xxxvf_hw_data.h"

#define ADF_SYSTEM_DEVICE(device_id) \
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}

static const struct pci_device_id adf_pci_tbl[] = {
ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_C3XXX_VF),
{0,}
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_C3XXX_VF), },
{ }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

Expand Down
7 changes: 2 additions & 5 deletions drivers/crypto/qat/qat_c62x/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_c62x_hw_data.h"

#define ADF_SYSTEM_DEVICE(device_id) \
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}

static const struct pci_device_id adf_pci_tbl[] = {
ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_C62X),
{0,}
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_C62X), },
{ }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

Expand Down
7 changes: 2 additions & 5 deletions drivers/crypto/qat/qat_c62xvf/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_c62xvf_hw_data.h"

#define ADF_SYSTEM_DEVICE(device_id) \
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}

static const struct pci_device_id adf_pci_tbl[] = {
ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_C62X_VF),
{0,}
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_C62X_VF), },
{ }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

Expand Down
7 changes: 2 additions & 5 deletions drivers/crypto/qat/qat_dh895xcc/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_dh895xcc_hw_data.h"

#define ADF_SYSTEM_DEVICE(device_id) \
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}

static const struct pci_device_id adf_pci_tbl[] = {
ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_DH895XCC),
{0,}
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_DH895XCC), },
{ }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

Expand Down
7 changes: 2 additions & 5 deletions drivers/crypto/qat/qat_dh895xccvf/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_dh895xccvf_hw_data.h"

#define ADF_SYSTEM_DEVICE(device_id) \
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}

static const struct pci_device_id adf_pci_tbl[] = {
ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF),
{0,}
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF), },
{ }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

Expand Down

0 comments on commit 37b15fa

Please sign in to comment.