diff options
author | Longfang Liu <[email protected]> | 2024-11-12 15:33:19 +0800 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2024-11-12 14:23:10 -0700 |
commit | ece8a2c77b881a379d24fee4656195d809161867 (patch) | |
tree | f9f89a997ee4c8a9c5a86821b1d04695b295ce40 /drivers/fpga/fpga-mgr.c | |
parent | 9283b7392570421c22a6c8058614f5b76a46b81c (diff) |
hisi_acc_vfio_pci: extract public functions for container_of
In the current driver, vdev is obtained from struct
hisi_acc_vf_core_device through the container_of function.
This method is used in many places in the driver. In order to
reduce this repetitive operation, It was extracted into
a public function.
Signed-off-by: Longfang Liu <[email protected]>
Reviewed-by: Shameer Kolothum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions