mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
drivers/ethos: avoid explicit cast to netdev
This commit is contained in:
parent
2d0802e31f
commit
91bd1ccd9e
@ -118,7 +118,7 @@ static void _end_of_frame(ethos_t *dev)
|
|||||||
if (dev->framesize) {
|
if (dev->framesize) {
|
||||||
assert(dev->last_framesize == 0);
|
assert(dev->last_framesize == 0);
|
||||||
dev->last_framesize = dev->framesize;
|
dev->last_framesize = dev->framesize;
|
||||||
netdev_trigger_event_isr((netdev_t*) dev);
|
netdev_trigger_event_isr(&dev->netdev);
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -187,14 +187,12 @@ static void ethos_isr(void *arg, uint8_t c)
|
|||||||
|
|
||||||
static void _isr(netdev_t *netdev)
|
static void _isr(netdev_t *netdev)
|
||||||
{
|
{
|
||||||
ethos_t *dev = (ethos_t *) netdev;
|
netdev->event_callback(netdev, NETDEV_EVENT_RX_COMPLETE);
|
||||||
dev->netdev.event_callback((netdev_t*) dev, NETDEV_EVENT_RX_COMPLETE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _init(netdev_t *encdev)
|
static int _init(netdev_t *encdev)
|
||||||
{
|
{
|
||||||
ethos_t *dev = (ethos_t *) encdev;
|
(void)encdev;
|
||||||
(void)dev;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user