drivers/tcs37727: do normal assignment instead of memcpy
This commit is contained in:
parent
f1856887af
commit
e60715d243
@ -44,7 +44,7 @@ int tcs37727_init(tcs37727_t *dev, const tcs37727_params_t *params)
|
|||||||
assert(dev && params);
|
assert(dev && params);
|
||||||
|
|
||||||
/* initialize the device descriptor */
|
/* initialize the device descriptor */
|
||||||
memcpy(&dev->p, params, sizeof(tcs37727_params_t));
|
dev->p = *params;
|
||||||
|
|
||||||
/* setup the I2C bus */
|
/* setup the I2C bus */
|
||||||
i2c_acquire(BUS);
|
i2c_acquire(BUS);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user