staging: comedi: declare das6402_boards as static
Subsystems (2)
PATCH 1/1 staging: comedi: declare das6402_boards as static
Hi,das6402_boards array seems to be used in das6402.c only, so declare it as static.
This patch applies to linux-next next-20140410.
Regards,
Michele
--- drivers/staging/comedi/drivers/das6402.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/das6402.c +1 -1
@@ -125,7 +125,7 @@ struct das6402_boardinfo {unsigned int maxdata; }; -struct das6402_boardinfo das6402_boards[] = { +static struct das6402_boardinfo das6402_boards[] = { { .name ="das6402-12" , .maxdata =0x0fff ,
Signature · 1 line
1.9.1
Quoted 9 lines · Michele Curti
Hi,
das6402_boardsarray seems to be used indas6402.conly, so declare it as static.This patch applies to linux-next next-20140410.
Regards,
Michele
The patch is fine, but you have too much fluff in the changelog. We just apply patches automatically by saving the raw email as text (including headers and everything) the we do acat raw_email.txt | git am.
Your changelog is all "Hello, how are you? blah blah blah. Best wishes, etc.". It should just say:
das6402_boards array is used in das6402.c only, so declare it as static.
Signed-off-by ...
You can put the "This patch applies to linux-next next-20140410" under the --- cut off line so that we're aware but it doesn't get saved in the log. For staging it doesn't really matter, because either the patch applies to linux-next or we'll ask you to redo it.
Please send a v2 with a terser changelog.
regards,
dan carpenter
PATCH v2 1/1 staging: comedi: declare das6402_boards as static
In reply to Michele Curtidas6402_boards array is used in das6402.c only, so declare it as static.
--- drivers/staging/comedi/drivers/das6402.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/das6402.c +1 -1
@@ -125,7 +125,7 @@ struct das6402_boardinfo {unsigned int maxdata; }; -struct das6402_boardinfo das6402_boards[] = { +static struct das6402_boardinfo das6402_boards[] = { { .name ="das6402-12" , .maxdata =0x0fff ,
Signature · 1 line
1.9.1
Quoted 4 lines · Michele Curti
das6402_boardsarray is used indas6402.conly, so declare it as static.Signed-off-by Michele Curti <[email protected]>
Looks good.
regards,
dan carpenter
Quoted 4 lines · Michele Curti
das6402_boardsarray is used indas6402.conly, so declare it as static.Signed-off-by Michele Curti <[email protected]>
Signature · 2 lines
-=( Ian Abbott @ MEV Ltd. E-mail: <[email protected]> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-