Skip to contentSkip to conversation

W1_CON: add W1 to depends

PATCH In review Randy.Dunlap 2 participants 4 messages Apr 27, 2006 W1 dallas's 1-wire bus

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 W1_CON: add W1 to depends

From: Randy Dunlap <[email protected]>

W1_CON should depend on W1 also.

---
 drivers/w1/Kconfig |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/w1/Kconfig +1 -1
@@ -13,7 +13,7 @@ config W1
 	  will be called wire.ko.
 
 config W1_CON
-	depends on CONNECTOR
+	depends on CONNECTOR && W1
 	bool "Userspace communication over connector"
 	default y
 	--- help ---

---

#1 lore raw
Quoted 3 lines · Randy.Dunlap

From: Randy Dunlap <[email protected]>

W1_CON should depend on W1 also.

I have no problem with the patch, but does dependency absence introduce some problems? This config option is only used when w1 is enabled.

Signature · 1 line
	Evgeniy Polyakov
#2 lore raw
Quoted 7 lines · On Thu, 27 Apr 2006 16:57:45 +0400 Evgeniy Polyakov wrote:
Quoted 3 lines · Randy.Dunlap

From: Randy Dunlap <[email protected]>

W1_CON should depend on W1 also.

I have no problem with the patch, but does dependency absence introduce some problems? This config option is only used when w1 is enabled.

Not quite true, or I wouldn't have seen a problem and sent a patch for it.
With W1 disabled and doing 'make oldconfig', I got a prompt for

Userspace communication over connector (W1_CON)? [Y/m/n]

which shouldn't happen.

---
~Randy

#3 lore raw
Quoted 10 lines · Randy.Dunlap
Quoted 7 lines · On Thu, 27 Apr 2006 16:57:45 +0400 Evgeniy Polyakov wrote:
Quoted 3 lines · Randy.Dunlap

From: Randy Dunlap <[email protected]>

W1_CON should depend on W1 also.

I have no problem with the patch, but does dependency absence introduce some problems? This config option is only used when w1 is enabled.

Quoted 7 lines

Not quite true, or I wouldn't have seen a problem and sent a patch for it.
With W1 disabled and doing 'make oldconfig', I got a prompt for

Userspace communication over connector (W1_CON)? [Y/m/n]

which shouldn't happen.

I mean that it is asked to be enabled or not, but some compilation and other logic is only turned on when w1 is enabled.

But you are right, it should not appear if w1 is not enabled. I will take care of your patch, thank you, Randy.

Quoted 2 lines

---
~Randy

Signature · 1 line
	Evgeniy Polyakov