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:
Tomasz Bursztyka 2022-01-06 14:10:19 +01:00 committed by Carles Cufí
commit 16062c2e5a
11 changed files with 14 additions and 14 deletions

View file

@ -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;