commit | dbfb4bc110faee678f2d2e806e8fdf4b6d970f21 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Thu Jan 16 05:03:23 2025 +0100 |
committer | Fabio Estevam <festevam@gmail.com> | Mon Jan 20 08:40:39 2025 -0300 |
tree | a80ba22621743f9feb881f247212c865b2801c6c | |
parent | 828b236cad91600eafbd052044bb4e9aa8f33bef [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>