> +static int adin_cl22_to_adin_reg(int devad, u16 cl22_regnum) > +{ > + struct clause22_mmd_map *m; > + int i; > + > + if (devad == MDIO_MMD_VEND1) > + return cl22_regnum; > + > + for (i = 0; i < ARRAY_SIZE(clause22_mmd_map); i++) { > + m = &clause22_mmd_map[i]; > + if (m->devad == devad && m->cl22_regnum == cl22_regnum) > + return m->adin_regnum; > + } > + > + pr_err("No translation available for devad: %d reg: %04x\n", > + devad, cl22_regnum); phydev_err(). Andrew