blob: ac39d14120f64aac66cbef8331cb30e343855923 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "mkbp_event.h"
const struct mkbp_event_source *zephyr_find_mkbp_event_source(uint8_t type)
{
STRUCT_SECTION_FOREACH(mkbp_event_source, evtsrc)
{
if (evtsrc->event_type == type)
return evtsrc;
}
return NULL;
}
|