From e60715d2432b47064ba9e456498c4d7f91affd95 Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Sun, 6 Jan 2019 22:54:44 +0100 Subject: [PATCH] drivers/tcs37727: do normal assignment instead of memcpy --- drivers/tcs37727/tcs37727.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tcs37727/tcs37727.c b/drivers/tcs37727/tcs37727.c index 7977d2fe67..7aa244ccfb 100644 --- a/drivers/tcs37727/tcs37727.c +++ b/drivers/tcs37727/tcs37727.c @@ -44,7 +44,7 @@ int tcs37727_init(tcs37727_t *dev, const tcs37727_params_t *params) assert(dev && params); /* initialize the device descriptor */ - memcpy(&dev->p, params, sizeof(tcs37727_params_t)); + dev->p = *params; /* setup the I2C bus */ i2c_acquire(BUS);