]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-mcp23s08: Build I2C support even when CONFIG_I2C=m
authorDaniel M. Weeks <dan@danweeks.net>
Wed, 7 Nov 2012 04:51:05 +0000 (23:51 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Nov 2012 21:22:24 +0000 (22:22 +0100)
commit20aed404b6b22434654f670847855957a4ebe4b1
treec44168d92cbeac57aafed3be8cc924f0fd114c09
parente98010a9ca5aafa2cff1cd5c692c67b67eb7ac94
gpio-mcp23s08: Build I2C support even when CONFIG_I2C=m

The driver has both SPI and I2C pieces. The appropriate pieces are built based
on whether SPI and/or I2C is/are enabled. However, it was only checking if I2C
was built-in, never if it was built as a module. This patch checks for either
since building both this driver and I2C as modules is possible.

Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c