drivers: ethernet: adin2111: fix device assignment
`k_thread_create` function has the 'adin' device passed as 1st entry pointer. Therefore the device configuration is obtained directly from the `dev` structure. Adujst the code accodringly. Fixes: 75dde83 ("drivers: ethernet: adin2111: add adin1110 support") Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
This commit is contained in:
parent
254ee94fc0
commit
a26a660e50
1 changed files with 1 additions and 2 deletions
|
@ -267,8 +267,7 @@ static inline void adin2111_port_on_phyint(const struct device *dev)
|
|||
static void adin2111_offload_thread(const struct device *dev)
|
||||
{
|
||||
struct adin2111_data *ctx = dev->data;
|
||||
const struct adin2111_port_config *pcfg = dev->config;
|
||||
const struct adin2111_config *adin_cfg = pcfg->adin->config;
|
||||
const struct adin2111_config *adin_cfg = dev->config;
|
||||
bool is_adin2111 = (adin_cfg->id == ADIN2111_MAC);
|
||||
uint32_t status0;
|
||||
uint32_t status1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue