_exports.h: drop creating dummy i2c entries and fixup config dependency
authorRasmus Villemoes <ravi@prevas.dk>
Fri, 19 Sep 2025 10:09:55 +0000 (12:09 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 17:55:13 +0000 (11:55 -0600)
commit0933358163a3c0ef13577853194769504cfb39ea
tree24a2b953e0fd312fbe8736af908dc1018ea48bcc
parente54bf98c3afc6dc6e6ce9496c217cb1c660aac4d
_exports.h: drop creating dummy i2c entries and fixup config dependency

There's really no good reason to create stub entries that would call a
function that doesn't even return anything sensible.

The existence of these two i2c_* functions depends on
CONFIG_IS_ENABLED(SYS_I2C_LEGACY), which does depend on !DM_I2C, but
is not equivalent to it. They are probably rather hard to use unless
CMD_I2C and something in U-Boot has called "i2c dev foo" to set the
current i2c bus before calling the standalone app, so keep that
dependency.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/_exports.h