hi, Heiko Schocher

Some soc related files use i2c_read, i2c_write similar function interface,
if you do not use the CONFIG_DM_I2C_COMPAT option to compile,
there will be a function undefined compilation error,
but if you do CONFIG_DM_I2C_COMPAT=y When compiling,
there will be the following warnings:

===================== WARNING ======================
This board uses CONFIG_DM_I2C_COMPAT. Please remove
(possibly in a subsequent patch in your series)
before sending patches to the mailing list.
====================================================

If I do ONFIG_DM_I2C_COMPAT=y, do I need to implement i2c_read, i2c_write such 
as the function interface definition in the i2c controller driver?
But these function declarations are all from include/i2c.h, if CONFIG_DM_I2C=y, 
these functions are not declared.

How should I be compatible with these old-style interfaces?

look forward to your reply!

Thanks,
Chuanhua
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to