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:
parent
c82f9759a8
commit
f8324c3bff
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user