drivers/mma8x5x: do normal assignment instead of memcpy
This commit is contained in:
parent
885b123147
commit
d5c4aa2a05
@ -44,7 +44,7 @@ int mma8x5x_init(mma8x5x_t *dev, const mma8x5x_params_t *params)
|
||||
assert(dev && params);
|
||||
|
||||
/* write device descriptor */
|
||||
memcpy(dev, params, sizeof(mma8x5x_params_t));
|
||||
dev->params = *params;
|
||||
|
||||
/* acquire the I2C bus */
|
||||
i2c_acquire(BUS);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user