From 41f6bf091567681e8f7a7159776df29c84ceaaa6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 May 2018 20:36:13 +0100 Subject: [PATCH] Fix typo #12 --- 4.15.2/LKMPG-4.15.2.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4.15.2/LKMPG-4.15.2.org b/4.15.2/LKMPG-4.15.2.org index 32a5050..d47e723 100644 --- a/4.15.2/LKMPG-4.15.2.org +++ b/4.15.2/LKMPG-4.15.2.org @@ -369,7 +369,7 @@ module_param_array(myintarray, int, NULL, 0); /* not interested in count */ short myshortarray[4]; int count; -module_parm_array(myshortarray, short, &count, 0); /* put count into "count" variable */ +module_param_array(myshortarray, short, &count, 0); /* put count into "count" variable */ #+END_SRC A good use for this is to have the module variable's default values set, like an port or IO address. If the variables contain the default values, then perform autodetection (explained elsewhere). Otherwise, keep the current value. This will be made clear later on.