drivers: remove redundant data/config casts
Some drivers explicitely casted data/config from void * to the corresponding type. However, this is unnecessary and, in many drivers it has been misused to drop const qualifier (refer to previous commits). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
30971b51ba
commit
435213a753
20 changed files with 68 additions and 69 deletions
|
@ -475,7 +475,7 @@ static void dma_callback(const struct device *dma_dev, void *callback_arg,
|
|||
const struct device *dev = (struct device *)callback_arg;
|
||||
const struct spi_mcux_config *config = dev->config;
|
||||
SPI_Type *base = config->base;
|
||||
struct spi_mcux_data *data = (struct spi_mcux_data *)dev->data;
|
||||
struct spi_mcux_data *data = dev->data;
|
||||
|
||||
LOG_DBG("=dma call back @channel %d=", channel);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue