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
|
@ -266,9 +266,8 @@ const struct espi_bus_isr espi_bus_isr_tbl[] = {
|
|||
#endif
|
||||
};
|
||||
|
||||
static void espi_bus_generic_isr(void *arg)
|
||||
static void espi_bus_generic_isr(const struct device *dev)
|
||||
{
|
||||
const struct device *dev = (const struct device *)arg;
|
||||
struct espi_reg *const inst = HAL_INSTANCE(dev);
|
||||
int i;
|
||||
uint32_t mask, status;
|
||||
|
|
|
@ -223,7 +223,7 @@ static inline uint8_t host_shd_mem_wnd_size_sl(uint32_t size)
|
|||
|
||||
/* Host KBC sub-device local functions */
|
||||
#if defined(CONFIG_ESPI_PERIPHERAL_8042_KBC)
|
||||
static void host_kbc_ibf_isr(void *arg)
|
||||
static void host_kbc_ibf_isr(const void *arg)
|
||||
{
|
||||
ARG_UNUSED(arg);
|
||||
struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc;
|
||||
|
@ -249,7 +249,7 @@ static void host_kbc_ibf_isr(void *arg)
|
|||
evt);
|
||||
}
|
||||
|
||||
static void host_kbc_obe_isr(void *arg)
|
||||
static void host_kbc_obe_isr(const void *arg)
|
||||
{
|
||||
ARG_UNUSED(arg);
|
||||
struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc;
|
||||
|
@ -438,7 +438,7 @@ static void host_shared_mem_region_init(void)
|
|||
#if defined(CONFIG_ESPI_PERIPHERAL_HOST_IO) || \
|
||||
defined(CONFIG_ESPI_PERIPHERAL_EC_HOST_CMD)
|
||||
/* Host pm (host io) sub-module isr function for all channels such as ACPI. */
|
||||
static void host_pmch_ibf_isr(void *arg)
|
||||
static void host_pmch_ibf_isr(const void *arg)
|
||||
{
|
||||
ARG_UNUSED(arg);
|
||||
struct pmch_reg *const inst_acpi = host_sub_cfg.inst_pm_acpi;
|
||||
|
@ -471,7 +471,7 @@ static void host_pmch_ibf_isr(void *arg)
|
|||
|
||||
/* Host port80 sub-device local functions */
|
||||
#if defined(CONFIG_ESPI_PERIPHERAL_DEBUG_PORT_80)
|
||||
static void host_port80_isr(void *arg)
|
||||
static void host_port80_isr(const void *arg)
|
||||
{
|
||||
ARG_UNUSED(arg);
|
||||
struct shm_reg *const inst_shm = host_sub_cfg.inst_shm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue