@@ -122,7 +122,6 @@ static void spi_mcux_master_callback(LPSPI_Type *base, lpspi_master_handle_t *ha
122
122
123
123
static int spi_mcux_transfer_next_packet (const struct device * dev )
124
124
{
125
- /* const struct spi_mcux_config *config = dev->config; */
126
125
struct spi_mcux_data * data = dev -> data ;
127
126
LPSPI_Type * base = (LPSPI_Type * )DEVICE_MMIO_NAMED_GET (dev , reg_base );
128
127
struct spi_context * ctx = & data -> ctx ;
@@ -324,7 +323,6 @@ static void spi_mcux_dma_callback(const struct device *dev, void *arg, uint32_t
324
323
325
324
static int spi_mcux_dma_tx_load (const struct device * dev , const uint8_t * buf , size_t len )
326
325
{
327
- /* const struct spi_mcux_config *cfg = dev->config; */
328
326
struct spi_mcux_data * data = dev -> data ;
329
327
struct dma_block_config * blk_cfg ;
330
328
LPSPI_Type * base = (LPSPI_Type * )DEVICE_MMIO_NAMED_GET (dev , reg_base );
@@ -365,7 +363,6 @@ static int spi_mcux_dma_tx_load(const struct device *dev, const uint8_t *buf, si
365
363
366
364
static int spi_mcux_dma_rx_load (const struct device * dev , uint8_t * buf , size_t len )
367
365
{
368
- /*const struct spi_mcux_config *cfg = dev->config; */
369
366
struct spi_mcux_data * data = dev -> data ;
370
367
struct dma_block_config * blk_cfg ;
371
368
LPSPI_Type * base = (LPSPI_Type * )DEVICE_MMIO_NAMED_GET (dev , reg_base );
@@ -462,7 +459,6 @@ static int transceive_dma(const struct device *dev, const struct spi_config *spi
462
459
const struct spi_buf_set * tx_bufs , const struct spi_buf_set * rx_bufs ,
463
460
bool asynchronous , spi_callback_t cb , void * userdata )
464
461
{
465
- /* const struct spi_mcux_config *config = dev->config; */
466
462
struct spi_mcux_data * data = dev -> data ;
467
463
LPSPI_Type * base = (LPSPI_Type * )DEVICE_MMIO_NAMED_GET (dev , reg_base );
468
464
int ret ;
0 commit comments