• J
    i2c: Don't advertise i2c functions when not available · 23af8400
    Jean Delvare 提交于
    Surround i2c function declarations with ifdefs, so that they aren't
    advertised when i2c-core isn't actually built. That way, drivers using
    these functions unconditionally will result in an immediate build
    failure, rather than a late linking failure which is harder to figure
    out.
    Signed-off-by: NJean Delvare <khali@linux-fr.org>
    Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Cc: Paul Mundt <lethal@linux-sh.org>
    23af8400
i2c.h 28.2 KB