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

drivers/mma7660: do normal assignment instead of memcpy

parent 8e898576
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
int mma7660_init(mma7660_t *dev, const mma7660_params_t *params) int mma7660_init(mma7660_t *dev, const mma7660_params_t *params)
{ {
/* write device descriptor */ /* write device descriptor */
memcpy(&dev->params, params, sizeof(mma7660_params_t)); dev->params = *params;
if (mma7660_set_mode(dev, 0, 0, 0, 0) != MMA7660_OK) { if (mma7660_set_mode(dev, 0, 0, 0, 0) != MMA7660_OK) {
DEBUG("mma7660_set_mode failed!\n"); DEBUG("mma7660_set_mode failed!\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment