1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

drivers/ata8520e: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent c82f9759a8
commit f8324c3bff

View File

@ -239,7 +239,7 @@ static void _poweroff(const ata8520e_t *dev)
int ata8520e_init(ata8520e_t *dev, const ata8520e_params_t *params)
{
/* write config params to device descriptor */
memcpy(&dev->params, params, sizeof(ata8520e_params_t));
dev->params = *params;
/* Initialize pins*/
if (gpio_init_int(INTPIN, GPIO_IN_PD,