@@ -395,15 +395,15 @@ static int spi_sam_transceive(struct device *dev,
395
395
return err ;
396
396
}
397
397
398
- static int spi_sam0_transceive_sync (struct device * dev ,
398
+ static int spi_sam_transceive_sync (struct device * dev ,
399
399
const struct spi_config * config ,
400
400
const struct spi_buf_set * tx_bufs ,
401
401
const struct spi_buf_set * rx_bufs )
402
402
{
403
- struct spi_sam0_data * data = dev -> driver_data ;
403
+ struct spi_sam_data * data = dev -> driver_data ;
404
404
405
405
spi_context_lock (& data -> ctx , false, NULL );
406
- return spi_sam0_transceive (dev , config , tx_bufs , rx_bufs );
406
+ return spi_sam_transceive (dev , config , tx_bufs , rx_bufs );
407
407
}
408
408
409
409
#ifdef CONFIG_SPI_ASYNC
@@ -413,10 +413,10 @@ static int spi_sam_transceive_async(struct device *dev,
413
413
const struct spi_buf_set * rx_bufs ,
414
414
struct k_poll_signal * async )
415
415
{
416
- struct spi_sam0_data * data = dev -> driver_data ;
416
+ struct spi_sam_data * data = dev -> driver_data ;
417
417
418
418
spi_context_lock (& data -> ctx , true, async );
419
- return spi_sam0_transceive (dev , config , tx_bufs , rx_bufs );
419
+ return spi_sam_transceive (dev , config , tx_bufs , rx_bufs );
420
420
}
421
421
#endif /* CONFIG_SPI_ASYNC */
422
422
@@ -513,7 +513,7 @@ static const struct spi_driver_api spi_sam_driver_api = {
513
513
SPI_CONTEXT_INIT_SYNC(spi_sam_dev_data_##n, ctx), \
514
514
}; \
515
515
DEVICE_AND_API_INIT(spi_sam_##n, \
516
- CONFIG_SPI_ ##n##_NAME, \
516
+ DT_SPI_ ##n##_NAME, \
517
517
&spi_sam_init, &spi_sam_dev_data_##n, \
518
518
&spi_sam_config_##n, POST_KERNEL, \
519
519
CONFIG_SPI_INIT_PRIORITY, &spi_sam_driver_api)
0 commit comments