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
|
@ -163,9 +163,8 @@ int can_stm32fd_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void can_stm32fd_line_0_isr(void *arg)
|
||||
static void can_stm32fd_line_0_isr(const struct device *dev)
|
||||
{
|
||||
struct device *dev = (struct device *)arg;
|
||||
const struct can_stm32fd_config *cfg = dev->config;
|
||||
const struct can_mcan_config *mcan_cfg = &cfg->mcan_cfg;
|
||||
struct can_stm32fd_data *data = dev->data;
|
||||
|
@ -175,11 +174,9 @@ static void can_stm32fd_line_0_isr(void *arg)
|
|||
can_mcan_line_0_isr(mcan_cfg, msg_ram, mcan_data);
|
||||
}
|
||||
|
||||
static void can_stm32fd_line_1_isr(void *arg)
|
||||
static void can_stm32fd_line_1_isr(const struct device *dev)
|
||||
{
|
||||
struct device *dev = (struct device *)arg;
|
||||
const struct can_stm32fd_config *cfg = dev->config;
|
||||
struct can_stm32fd_data *data = dev->data;
|
||||
const struct can_mcan_config *mcan_cfg = &cfg->mcan_cfg;
|
||||
struct can_mcan_data *mcan_data = &data->mcan_data;
|
||||
struct can_mcan_msg_sram *msg_ram = cfg->msg_sram;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue