i2c: use macro IS_ENABLED in header i2c.h

Using the macro IS_ENABLED to check the option CONFIG_I2C=(y|m) makes
the code nicer.  No functional change.

Signed-off-by: Stefan Lengfeld <contact@stefanchrist.eu>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Stefan Lengfeld 2017-11-01 21:06:41 +01:00 • committed by Wolfram Sang
commit 901a891fa6