Skip to contentSkip to conversation

w1: fix timeout_us parameter description

PATCH In review Wei Yongjun 2 participants 6 messages Aug 8, 2016 – Aug 12, 2016 W1 dallas's 1-wire bus

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 w1: fix timeout_us parameter description

Fix 'timeout_us' parameter description.

---
 drivers/w1/w1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/w1/w1.c +2 -2
index bb34362..e213c67 100644
@@ -53,8 +53,8 @@ int w1_max_slave_ttl = 10;
 module_param_named(timeout, w1_timeout, int, 0);
 MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches");
 module_param_named(timeout_us, w1_timeout_us, int, 0);
-MODULE_PARM_DESC(timeout, "time in microseconds between automatic slave"
-		          " searches");
+MODULE_PARM_DESC(timeout_us,
+		 "time in microseconds between automatic slave searches");
 /* A search stops when w1_max_slave_count devices have been found in that
  * search.  The next search will start over and detect the same set of devices
  * on a static 1-wire bus.  Memory is not allocated based on this number, just
#1 lore raw

Hi

08.08.2016, 16:52, "Wei Yongjun" <[email protected]>:

Quoted 12 lines

Fix 'timeout_us' parameter description.

---
 drivers/w1/w1.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/w1/w1.c +0 -0
index bb34362..e213c67 100644

drivers/w1/w1.c int w1_max_slave_ttl = 10; · line 57

Quoted 7 lines
drivers/w1/w1.c +2 -2
@@ -53,8 +53,8 @@ int w1_max_slave_ttl = 10;
  module_param_named(timeout, w1_timeout, int, 0);
  MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches");
  module_param_named(timeout_us, w1_timeout_us, int, 0);
-MODULE_PARM_DESC(timeout, "time in microseconds between automatic slave"
- " searches");
+MODULE_PARM_DESC(timeout_us,
+ "time in microseconds between automatic slave searches");

I believe there will be no harm to put it to on one line, even if it crosses some obscure very-long-line rule

#2 lore raw

Hi

Quoted 10 lines · Evgeniy Polyakov

Hi

08.08.2016, 16:52, "Wei Yongjun" <[email protected]>:

Quoted 7 lines

Fix 'timeout_us' parameter description.

---
 drivers/w1/w1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 13 lines

drivers/w1/w1.c int w1_max_slave_ttl = 10; · line 57

Quoted 12 lines
drivers/w1/w1.c +2 -2
index bb34362..e213c67 100644
@@ -53,8 +53,8 @@ int w1_max_slave_ttl = 10;
 module_param_named(timeout, w1_timeout, int, 0);
 MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches");
 module_param_named(timeout_us, w1_timeout_us, int, 0);
-MODULE_PARM_DESC(timeout, "time in microseconds between automatic slave"
- " searches");
+MODULE_PARM_DESC(timeout_us,
+ "time in microseconds between automatic slave searches");

I believe there will be no harm to put it to on one line, even if it crosses some obscure very-long-line rule

Maybe the bad patch description confused you, this patch the typo in the first argument of MODULE_PARM_DESC(), use timeout_us instead of timeout.

#3 lore raw

Hi

10.08.2016, 06:22, "Wei Yongjun" <[email protected]>:

Quoted 9 lines
Quoted 9 lines

 08.08.2016, 16:52, "Wei Yongjun" <[email protected]>:

Quoted 8 lines

 Fix 'timeout_us' parameter description.

  MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches"); module_param_named(timeout_us, w1_timeout_us, int, 0); -MODULE_PARM_DESC(timeout, "time in microseconds between automatic slave"
 - " searches");
 +MODULE_PARM_DESC(timeout_us,
 + "time in microseconds between automatic slave searches");

Quoted 4 lines
Quoted 1 line

 I believe there will be no harm to put it to on one line, even if it crosses some obscure very-long-line rule

Maybe the bad patch description confused you, this patch the typo in the first argument of MODULE_PARM_DESC(), use timeout_us instead of timeout.

Yup, you are right, please make it as one line since you are at it

#4 lore raw

PATCH v2 1/1 w1: fix typo in parameter description

In reply to Wei Yongjun

Fix typo in parameter description.

---
v1 -> v2: make it as one line, comments from Evgeniy Polyakov

---
 drivers/w1/w1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/w1/w1.c +1 -2
index bb34362..4bd898b 100644
@@ -53,8 +53,7 @@ int w1_max_slave_ttl = 10;
 module_param_named(timeout, w1_timeout, int, 0);
 MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches");
 module_param_named(timeout_us, w1_timeout_us, int, 0);
-MODULE_PARM_DESC(timeout, "time in microseconds between automatic slave"
-		          " searches");
+MODULE_PARM_DESC(timeout_us, "time in microseconds between automatic slave searches");
 /* A search stops when w1_max_slave_count devices have been found in that
  * search.  The next search will start over and detect the same set of devices
  * on a static 1-wire bus.  Memory is not allocated based on this number, just
Acked-by on v2 1/1
#5 lore raw

Re: [PATCH v2] w1: fix typo in parameter description

Hi

11.08.2016, 03:03, "Wei Yongjun" <[email protected]>:

Quoted 3 lines

Fix typo in parameter description.

Looks good to me, thank you
Greg, please pull it into your tree

Quoted 20 lines

---
v1 -> v2: make it as one line, comments from Evgeniy Polyakov
---
 drivers/w1/w1.c | 3 +--

 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/w1/w1.c +1 -2
index bb34362..4bd898b 100644
@@ -53,8 +53,7 @@ int w1_max_slave_ttl = 10;
  module_param_named(timeout, w1_timeout, int, 0);
  MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches");
  module_param_named(timeout_us, w1_timeout_us, int, 0);
-MODULE_PARM_DESC(timeout, "time in microseconds between automatic slave"
- " searches");
+MODULE_PARM_DESC(timeout_us, "time in microseconds between automatic slave searches");
  /* A search stops when w1_max_slave_count devices have been found in that
   * search. The next search will start over and detect the same set of devices
   * on a static 1-wire bus. Memory is not allocated based on this number, just