Skip to content
Commit 06599472 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

libqos: i2c: move address into QI2CDevice



This removes the hardcoded I2C address from the tests.  The address
is passed via QOSGraphEdgeOptions to i2c_device_create and stored
in the QI2CDevice.

The i2c_send and i2c_recv functions, along with their wrappers,
therefore, can be changed to take a QI2CDevice rather than an
adapter/address pair.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8130dbcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment