Skip to content
Snippets Groups Projects
Commit 811cda15 authored by Kees Bakker's avatar Kees Bakker
Browse files

drivers/w5100: do normal assignment instead of memcpy

parent 0cceb64a
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ void w5100_setup(w5100_t *dev, const w5100_params_t *params) ...@@ -118,7 +118,7 @@ void w5100_setup(w5100_t *dev, const w5100_params_t *params)
dev->nd.context = dev; dev->nd.context = dev;
/* initialize the device descriptor */ /* initialize the device descriptor */
memcpy(&dev->p, params, sizeof(w5100_params_t)); dev->p = *params;
/* initialize the chip select pin and the external interrupt pin */ /* initialize the chip select pin and the external interrupt pin */
spi_init_cs(dev->p.spi, dev->p.cs); spi_init_cs(dev->p.spi, dev->p.cs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment