drivers: constify all device instances
Run cocci script to constify device instances. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
d75f00a513
commit
16062c2e5a
11 changed files with 14 additions and 14 deletions
|
@ -472,7 +472,7 @@ static int configure_dma(const struct device *dev)
|
|||
static void dma_callback(const struct device *dma_dev, void *callback_arg,
|
||||
uint32_t channel, int error_code)
|
||||
{
|
||||
const struct device *dev = (struct device *)callback_arg;
|
||||
const struct device *dev = (const struct device *)callback_arg;
|
||||
const struct spi_mcux_config *config = dev->config;
|
||||
SPI_Type *base = config->base;
|
||||
struct spi_mcux_data *data = dev->data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue