lint: use correct type signature for Zephyr callbacks
This commit is contained in:
parent
7a5155f36e
commit
b8cb407351
3 changed files with 4 additions and 4 deletions
|
@ -80,11 +80,11 @@ void activity_work_handler(struct k_work *work) {
|
|||
|
||||
K_WORK_DEFINE(activity_work, activity_work_handler);
|
||||
|
||||
void activity_expiry_function(void) { k_work_submit(&activity_work); }
|
||||
void activity_expiry_function(struct k_timer *_timer) { k_work_submit(&activity_work); }
|
||||
|
||||
K_TIMER_DEFINE(activity_timer, activity_expiry_function, NULL);
|
||||
|
||||
int activity_init(void) {
|
||||
int activity_init(const struct device *_device) {
|
||||
activity_last_uptime = k_uptime_get();
|
||||
|
||||
k_timer_start(&activity_timer, K_SECONDS(1), K_SECONDS(1));
|
||||
|
|
|
@ -232,7 +232,7 @@ static int rgb_settings_set(const char *name, size_t len, settings_read_cb read_
|
|||
|
||||
struct settings_handler rgb_conf = {.name = "rgb/underglow", .h_set = rgb_settings_set};
|
||||
|
||||
static void zmk_rgb_underglow_save_state_work(void) {
|
||||
static void zmk_rgb_underglow_save_state_work(struct k_work *_work) {
|
||||
settings_save_one("rgb/underglow/state", &state, sizeof(state));
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ struct k_work_q *zmk_workqueue_lowprio_work_q(void) {
|
|||
return &lowprio_work_q;
|
||||
}
|
||||
|
||||
static int workqueue_init(void) {
|
||||
static int workqueue_init(const struct device *_device) {
|
||||
static const struct k_work_queue_config queue_config = {.name = "Low Priority Work Queue"};
|
||||
k_work_queue_start(&lowprio_work_q, lowprio_q_stack, K_THREAD_STACK_SIZEOF(lowprio_q_stack),
|
||||
CONFIG_ZMK_LOW_PRIORITY_THREAD_PRIORITY, &queue_config);
|
||||
|
|
Loading…
Add table
Reference in a new issue