37 #define TRIGGER_WARN_ONCE(t, exp) \ 38 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \ 39 t->name, t->state, __func__) 94 #define DEFINE_TRIGGER(n) \ 95 struct trigger n = {.state = TRIGGER_OFF, .name = #n} static void trigger_on(struct trigger *t)
static void trigger_ready(struct trigger *t)
static void trigger_hit(struct trigger *t)
static bool trigger_is_error(struct trigger *t)
static bool trigger_is_available(struct trigger *t)
static bool trigger_is_hit(struct trigger *t)
static void trigger_error(struct trigger *t)
#define TRIGGER_WARN_ONCE(t, exp)
static void trigger_off(struct trigger *t)
static bool trigger_is_ready(struct trigger *t)