@@ -122,7 +122,6 @@ static void spi_mcux_master_callback(LPSPI_Type *base, lpspi_master_handle_t *ha
122122
123123static int spi_mcux_transfer_next_packet (const struct device * dev )
124124{
125- /* const struct spi_mcux_config *config = dev->config; */
126125 struct spi_mcux_data * data = dev -> data ;
127126 LPSPI_Type * base = (LPSPI_Type * )DEVICE_MMIO_NAMED_GET (dev , reg_base );
128127 struct spi_context * ctx = & data -> ctx ;
@@ -324,7 +323,6 @@ static void spi_mcux_dma_callback(const struct device *dev, void *arg, uint32_t
324323
325324static int spi_mcux_dma_tx_load (const struct device * dev , const uint8_t * buf , size_t len )
326325{
327- /* const struct spi_mcux_config *cfg = dev->config; */
328326 struct spi_mcux_data * data = dev -> data ;
329327 struct dma_block_config * blk_cfg ;
330328 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
365363
366364static int spi_mcux_dma_rx_load (const struct device * dev , uint8_t * buf , size_t len )
367365{
368- /*const struct spi_mcux_config *cfg = dev->config; */
369366 struct spi_mcux_data * data = dev -> data ;
370367 struct dma_block_config * blk_cfg ;
371368 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
462459 const struct spi_buf_set * tx_bufs , const struct spi_buf_set * rx_bufs ,
463460 bool asynchronous , spi_callback_t cb , void * userdata )
464461{
465- /* const struct spi_mcux_config *config = dev->config; */
466462 struct spi_mcux_data * data = dev -> data ;
467463 LPSPI_Type * base = (LPSPI_Type * )DEVICE_MMIO_NAMED_GET (dev , reg_base );
468464 int ret ;
0 commit comments