]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i801: use IS_ENABLED() instead of checking for built-in or module
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 21 Jul 2016 16:11:01 +0000 (12:11 -0400)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 26 Jul 2016 06:44:56 +0000 (08:44 +0200)
commite03113d27135e82b9e201108737e9559091725e9
tree0a368ebe90c45e9d80b516abdbce19fc6c22f940
parente0368b369688bc1bc2fed19b879837bc6f8ba756
i2c: i801: use IS_ENABLED() instead of checking for built-in or module

The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.

Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c