Skip to content
Commit 24762115 authored by Tom Burdick's avatar Tom Burdick Committed by Anas Nashif
Browse files

i2c: Fix default RTIO handler transactions



Transactions from RTIO should result in single calls to i2c_transfer.
This corrects the default handler to first count the number of
submissions in the transaction, allocate on the stack, and then copy
over each submission to an equivalent i2c_msg.

It also cleans up the helper functions to be infallible, taking only the
submission and msg to copy to.

Signed-off-by: default avatarTom Burdick <thomas.burdick@intel.com>
parent fab01c0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment