Skip to content

Commit af3c25a

Browse files
decsnynashif
authored andcommitted
drivers: spi_mcux_lpspi: Remove commented code
Remove lines of code that are commented out. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent fa82ec0 commit af3c25a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/spi/spi_mcux_lpspi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ static void spi_mcux_master_callback(LPSPI_Type *base, lpspi_master_handle_t *ha
122122

123123
static 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

325324
static 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

366364
static 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

Comments
 (0)