Skip to contentSkip to conversation

power: bq27xxx_battery: Remove unneeded dependency in Kconfig

PATCH In review Andrew F. Davis 3 participants 3 messages Oct 16, 2015 – Oct 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: bq27xxx_battery: Remove unneeded dependency in Kconfig

I2C is only required when using the config item BATTERY_BQ27XXX_I2C which already depends on the I2C subsystem, remove the unneeded dependency from BATTERY_BQ27XXX.

---
 drivers/power/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/power/Kconfig +0 -1
index eeb5776..34aa017 100644
@@ -159,7 +159,6 @@ config BATTERY_SBS
 
 config BATTERY_BQ27XXX
 	tristate "BQ27xxx battery driver"
-	depends on I2C || I2C=n
 	help
 	  Say Y here to enable support for batteries with BQ27xxx (I2C/HDQ) chips.
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 14 lines · On Friday 16 October 2015 09:49:20 Andrew F. Davis wrote:

I2C is only required when using the config item BATTERY_BQ27XXX_I2C which already depends on the I2C subsystem, remove the unneeded dependency from BATTERY_BQ27XXX.

---
 drivers/power/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/power/Kconfig +0 -0
index eeb5776..34aa017 100644

drivers/power/Kconfig config BATTERY_SBS · line 164

Quoted 7 lines
drivers/power/Kconfig +0 -1
@@ -159,7 +159,6 @@ config BATTERY_SBS
 
 config BATTERY_BQ27XXX
 	tristate "BQ27xxx battery driver"
-	depends on I2C || I2C=n
 	help
 	  Say Y here to enable support for batteries with BQ27xxx (I2C/HDQ) chips.
 

Sounds good, so Acked-by: Pali Rohár <[email protected]>

Signature · 2 lines
Pali Rohár
[email protected]
#2 lore raw
In reply to Andrew F. Davis

Hi,

Quoted 3 lines · Andrew F. Davis

I2C is only required when using the config item BATTERY_BQ27XXX_I2C which already depends on the I2C subsystem, remove the unneeded dependency from BATTERY_BQ27XXX.

Thanks, queued.

-- Sebastian