diff options
author | Marek Vasut <marex@denx.de> | 2025-01-16 05:03:23 +0100 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2025-01-20 08:40:39 -0300 |
commit | 4eb5ef73a9565a78dd2a18d0ff4576701bedf872 (patch) | |
tree | a80ba22621743f9feb881f247212c865b2801c6c /drivers/net/fsl_enetc_netc_blk_ctrl.c | |
parent | e091e49afe0c47f5884928f42dd29c980478d3e7 (diff) |
net: fsl_enetc: Introduce enetc_dev_id()
Introduce mapping function enetc_dev_id(), which converts PCIe BDF of
the ENETC into linear incrementing index usable e.g. as interface index.
This replaces the current ad-hoc calculation used in the code with a
dedicated function. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/net/fsl_enetc_netc_blk_ctrl.c')
0 files changed, 0 insertions, 0 deletions