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:
parent
db6ca32346
commit
2aa9ec43dc
3 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue