1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

drivers/encx24j600: avoid explicit cast to netdev

This commit is contained in:
Jose Alamos 2021-06-22 16:03:18 +02:00
parent 91bd1ccd9e
commit ebb857f8fa
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -92,13 +92,13 @@ void encx24j600_setup(encx24j600_t *dev, const encx24j600_params_t *params)
static void encx24j600_isr(void *arg)
{
encx24j600_t *dev = (encx24j600_t *) arg;
encx24j600_t *dev = arg;
/* disable interrupt line */
gpio_irq_disable(dev->int_pin);
/* call netdev hook */
netdev_trigger_event_isr((netdev_t*) dev);
netdev_trigger_event_isr(&dev->netdev);
}
static void _isr(netdev_t *netdev)