]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: use macro IS_ENABLED in header i2c.h
authorStefan Lengfeld <slengfeld@inovex.de>
Wed, 1 Nov 2017 20:06:41 +0000 (21:06 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 27 Nov 2017 17:31:57 +0000 (18:31 +0100)
commit901a891fa6235b68d4c007800ea91c1a091f6f99
treef45731c11261cd323fc0d33d4914571f1ff2bc00
parent43df43e6ba139e6cd77ea31ca27efc67ea2df44b
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>
include/linux/i2c.h