[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1447104183-13556-1-git-send-email-afd@ti.com>
Date: Mon, 9 Nov 2015 15:23:03 -0600
From: "Andrew F. Davis" <afd@...com>
To: Arnd Bergmann <arnd@...db.de>, Sebastian Reichel <sre@...nel.org>,
Pali Rohar <pali.rohar@...il.com>,
Xiong Zhou <jencce.kernel@...il.com>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>
CC: <linux-pm@...r.kernel.org>, <linux-i2c@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, "Andrew F. Davis" <afd@...com>
Subject: [PATCH] power: bq27xxx_battery: Add I2C module check dependency in Kconfig
Check if I2C core has been built as a module when BATTERY_BQ27XXX
is built-in. If so disable I2C functionality.
Fixes: 6bd03ce3c12a ("power: bq27xxx_battery: Remove unneeded dependency in Kconfig")
Reported-by: Arnd Bergmann <arnd@...db.de>
Signed-off-by: Andrew F. Davis <afd@...com>
---
drivers/power/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig
index 237d7aa..2f944d7 100644
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -166,6 +166,7 @@ config BATTERY_BQ27XXX_I2C
bool "BQ27xxx I2C support"
depends on BATTERY_BQ27XXX
depends on I2C
+ depends on !(I2C=m && BATTERY_BQ27XXX=y)
default y
help
Say Y here to enable support for batteries with BQ27xxx (I2C) chips.
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists