Skip to content
  • Jean Delvare's avatar
    i2c: Don't advertise i2c functions when not available · 23af8400
    Jean Delvare authored
    
    
    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: default avatarJean Delvare <khali@linux-fr.org>
    Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Cc: Paul Mundt <lethal@linux-sh.org>
    23af8400