drivers: Check and fix device const qualifier on ISR
Re-running the script that checks for the const qualifier missing on struct device ISR's parameter. The script also changes the parameter 'arg' to 'dev' when relevant. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
521c9d13fb
commit
9a18fdea3f
22 changed files with 77 additions and 96 deletions
|
@ -273,9 +273,8 @@ static int i2c_cc13xx_cc26xx_configure(const struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void i2c_cc13xx_cc26xx_isr(const void *arg)
|
||||
static void i2c_cc13xx_cc26xx_isr(const struct device *dev)
|
||||
{
|
||||
const struct device *dev = arg;
|
||||
const struct i2c_cc13xx_cc26xx_config *config = dev->config;
|
||||
struct i2c_cc13xx_cc26xx_data *data = dev->data;
|
||||
const uint32_t base = config->base;
|
||||
|
|
|
@ -197,9 +197,8 @@ static inline void i2c_dw_write_byte_non_blocking(const struct device *dev, uint
|
|||
static void i2c_dw_slave_read_clear_intr_bits(const struct device *dev);
|
||||
#endif
|
||||
|
||||
static void i2c_dw_isr(void *arg)
|
||||
static void i2c_dw_isr(const struct device *port)
|
||||
{
|
||||
const struct device *port = (const struct device *)arg;
|
||||
struct i2c_dw_dev_config * const dw = port->data;
|
||||
union ic_interrupt_register intr_stat;
|
||||
uint32_t value;
|
||||
|
|
|
@ -881,9 +881,8 @@ static int i2c_it8xxx2_transfer(const struct device *dev, struct i2c_msg *msgs,
|
|||
return i2c_parsing_return_value(dev);
|
||||
}
|
||||
|
||||
static void i2c_it8xxx2_isr(void *arg)
|
||||
static void i2c_it8xxx2_isr(const struct device *dev)
|
||||
{
|
||||
const struct device *dev = (const struct device *)arg;
|
||||
struct i2c_it8xxx2_data *data = dev->data;
|
||||
const struct i2c_it8xxx2_config *config = dev->config;
|
||||
|
||||
|
|
|
@ -190,9 +190,8 @@ static int lpc11u6x_i2c_slave_unregister(const struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void lpc11u6x_i2c_isr(const void *arg)
|
||||
static void lpc11u6x_i2c_isr(const struct device *dev)
|
||||
{
|
||||
const struct device *dev = arg;
|
||||
struct lpc11u6x_i2c_data *data = dev->data;
|
||||
struct lpc11u6x_i2c_regs *i2c = DEV_BASE(dev);
|
||||
struct lpc11u6x_i2c_current_transfer *transfer = &data->transfer;
|
||||
|
|
|
@ -723,10 +723,9 @@ static int i2c_xec_transfer(const struct device *dev, struct i2c_msg *msgs,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void i2c_xec_bus_isr(void *arg)
|
||||
static void i2c_xec_bus_isr(const struct device *dev)
|
||||
{
|
||||
#ifdef CONFIG_I2C_SLAVE
|
||||
const struct device *dev = (const struct device *)arg;
|
||||
const struct i2c_xec_config *config =
|
||||
(const struct i2c_xec_config *const) (dev->config);
|
||||
struct i2c_xec_data *data = dev->data;
|
||||
|
|
|
@ -798,10 +798,9 @@ static int i2c_xec_transfer(const struct device *dev, struct i2c_msg *msgs,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void i2c_xec_bus_isr(void *arg)
|
||||
static void i2c_xec_bus_isr(const struct device *dev)
|
||||
{
|
||||
#ifdef CONFIG_I2C_SLAVE
|
||||
const struct device *dev = (const struct device *)arg;
|
||||
const struct i2c_xec_config *cfg =
|
||||
(const struct i2c_xec_config *const) (dev->config);
|
||||
struct i2c_xec_data *data = dev->data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue