On Fri, Apr 08, 2022 at 10:29:48AM +0200, Oleksij Rempel wrote: > Port SJA11xx driver from u-boot v2022.04-rc2 to provide support for NXP SJA11xx > series of switches. > > Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> > --- > drivers/net/Kconfig | 17 + > drivers/net/Makefile | 1 + > drivers/net/sja1105.c | 3005 +++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 3023 insertions(+) > create mode 100644 drivers/net/sja1105.c > ... > +static const struct of_device_id sja1105_ids[] = { > + { .compatible = "nxp,sja1105e", .data = (void *)SJA1105E }, > + { .compatible = "nxp,sja1105t", .data = (void *)SJA1105T }, > + { .compatible = "nxp,sja1105p", .data = (void *)SJA1105P }, > + { .compatible = "nxp,sja1105q", .data = (void *)SJA1105Q }, > + { .compatible = "nxp,sja1105r", .data = (void *)SJA1105R }, > + { .compatible = "nxp,sja1105s", .data = (void *)SJA1105S }, > + { .compatible = "nxp,sja1110a", .data = (void *)SJA1110A }, > + { .compatible = "nxp,sja1110b", .data = (void *)SJA1110B }, > + { .compatible = "nxp,sja1110c", .data = (void *)SJA1110C }, > + { .compatible = "nxp,sja1110d", .data = (void *)SJA1110D }, Instead of casting the id to a void * you could attach the struct sja1105_info * directly here. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox