From: Jean Delvare Date: Fri, 19 Jun 2009 14:58:20 +0000 (+0200) Subject: i2c: Don't advertise i2c functions when not available X-Git-Tag: v2.6.31-rc1~107^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23af8400571ac4431fac0caefeac18f8aef490df;p=pandora-kernel.git i2c: Don't advertise i2c functions when not available 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: Jean Delvare Cc: Mark Brown Cc: Paul Mundt --- Reading git-diff-tree failed