Skip to content
Commit 2a2a855a authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

drivers: i2c: add system call handlers



i2c actually only has two entry points into the driver,
i2c_configure and i2c_transfer. All the other APIs are derived
from these.

All derived APIs now just call i2c_transfer() with appropriate args.

The handler for i2c_transfer() needs to examine the message array
and validate all the buffers involved depending on whether we are
reading or writing to them.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 74446381
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment