w1: fix timeout_us parameter description
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
@@ -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
Hi
08.08.2016, 16:52, "Wei Yongjun" <[email protected]>:
Quoted 12 lines
Fix '
timeout_us' parameter description.Signed-off-by Wei Yongjun <[email protected]>---
drivers/w1/w1.c | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/w1/w1.c +0
-0
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
Hi
Quoted 10 lines · Evgeniy Polyakov
Hi
08.08.2016, 16:52, "Wei Yongjun" <[email protected]>:
Quoted 7 lines
Fix '
timeout_us' parameter description.Signed-off-by Wei Yongjun <[email protected]>--- 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@@ -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.
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(), usetimeout_usinstead of timeout.
Yup, you are right, please make it as one line since you are at it
PATCH v2 1/1 w1: fix typo in parameter description
In reply to Wei YongjunFix 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
@@ -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
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.
Signed-off-by Wei Yongjun <[email protected]>
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@@ -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