Attention is currently required from: Tim Wawrzynczak. Hello Tim Wawrzynczak,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/63209
to review the following change.
Change subject: device/i2c_bus: Add probe function pointer in i2c_bus_ops ......................................................................
device/i2c_bus: Add probe function pointer in i2c_bus_ops
Some coreboot drivers may want the ability to probe an I2C bus for the existence of a device, so this patch adds a function pointer in the i2c_bus_ops structure to accomodate that.
Change-Id: Ia8ddfb187eabec966c253b6cc8526491c99151fc Signed-off-by: Matt DeVillier matt.devillier@gmail.com Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/include/device/i2c_bus.h 1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/63209/1
diff --git a/src/include/device/i2c_bus.h b/src/include/device/i2c_bus.h index 42f461d..01c705b 100644 --- a/src/include/device/i2c_bus.h +++ b/src/include/device/i2c_bus.h @@ -11,6 +11,7 @@ /* I2C bus operation for ramstage drivers */ struct i2c_bus_operations { int (*transfer)(struct device *, const struct i2c_msg *, size_t count); + bool (*detect)(struct device *dev, unsigned int addr); };
/*