drivers: sensor: ccs811: Change parameters of helper functions
Change parameter list of functions for consistency with other drivers. Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
This commit is contained in:
parent
3710af9a1b
commit
15aefccf17
2 changed files with 34 additions and 28 deletions
|
@ -95,8 +95,10 @@ static void gpio_callback(const struct device *dev,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_CCS811_TRIGGER_OWN_THREAD
|
||||
static void irq_thread(struct ccs811_data *drv_data)
|
||||
static void irq_thread(struct ccs811_data *dev)
|
||||
{
|
||||
struct ccs811_data *drv_data = dev->data;
|
||||
|
||||
while (1) {
|
||||
k_sem_take(&drv_data->gpio_sem, K_FOREVER);
|
||||
process_irq(drv_data->dev);
|
||||
|
@ -184,7 +186,7 @@ int ccs811_init_interrupt(const struct device *dev)
|
|||
|
||||
k_thread_create(&drv_data->thread, drv_data->thread_stack,
|
||||
CONFIG_CCS811_THREAD_STACK_SIZE,
|
||||
(k_thread_entry_t)irq_thread, drv_data,
|
||||
(k_thread_entry_t)irq_thread, dev,
|
||||
NULL, NULL, K_PRIO_COOP(CONFIG_CCS811_THREAD_PRIORITY),
|
||||
0, K_NO_WAIT);
|
||||
#elif defined(CONFIG_CCS811_TRIGGER_GLOBAL_THREAD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue