spi_nxp_lpspi: Remove dev pointer from data struct

The dev pointer in the data struct is not being used, so remove it.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2025-05-19 11:06:25 -05:00 committed by Anas Nashif
commit 2aa9ec43dc
3 changed files with 1 additions and 4 deletions

View file

@ -215,7 +215,7 @@ static inline void lpspi_handle_tx_irq(const struct device *dev)
lpspi_data->fill_len -= this_buf_words_sent;
}
lpspi_next_tx_fill(data->dev);
lpspi_next_tx_fill(dev);
}
static inline void lpspi_end_xfer(const struct device *dev)

View file

@ -204,8 +204,6 @@ int spi_nxp_init_common(const struct device *dev)
DEVICE_MMIO_NAMED_MAP(dev, reg_base, K_MEM_CACHE_NONE | K_MEM_DIRECT_MAP);
data->dev = dev;
if (!device_is_ready(config->clock_dev)) {
LOG_ERR("clock control device not ready");
return -ENODEV;

View file

@ -47,7 +47,6 @@ struct lpspi_config {
struct lpspi_data {
DEVICE_MMIO_NAMED_RAM(reg_base);
const struct device *dev;
struct spi_context ctx;
void *driver_data;
size_t transfer_len;