board/io3.c: Add io3_to_jvs_node() accessor

This commit is contained in:
Tau 2019-11-03 13:00:55 -05:00
parent 879dc0bfb4
commit 93fcdf8f6d
2 changed files with 9 additions and 0 deletions

View File

@ -150,6 +150,13 @@ void io3_init(
io3->ops_ctx = ops_ctx;
}
struct jvs_node *io3_to_jvs_node(struct io3 *io3)
{
assert(io3 != NULL);
return &io3->jvs;
}
static void io3_transact(
struct jvs_node *node,
const void *bytes,

View File

@ -33,3 +33,5 @@ void io3_init(
struct jvs_node *next,
const struct io3_ops *ops,
void *ops_ctx);
struct jvs_node *io3_to_jvs_node(struct io3 *io3);