diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-08-26 16:51:23 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-08-27 08:24:07 -0400 |
commit | 6a4c264313c4ae32dc53821a9c57e0dc9696fb81 (patch) | |
tree | 51a3e86768d16053dad28282f13782d4bb3043b0 /kernel/params.c | |
parent | 68e370289c29e3beac99d59c6d840d470af9dfcf (diff) |
module: rename KERNEL_PARAM_FL_NOARG to avoid confusion
Make it clear this is about kernel_param_ops, not kernel_param (which
will soon have a flags field of its own). No functional changes.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Jon Mason <jon.mason@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/params.c')
-rw-r--r-- | kernel/params.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/params.c b/kernel/params.c index 34f527023794..8a484fc8bde8 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
@@ -104,7 +104,7 @@ static int parse_one(char *param, | |||
104 | return 0; | 104 | return 0; |
105 | /* No one handled NULL, so do it here. */ | 105 | /* No one handled NULL, so do it here. */ |
106 | if (!val && | 106 | if (!val && |
107 | !(params[i].ops->flags & KERNEL_PARAM_FL_NOARG)) | 107 | !(params[i].ops->flags & KERNEL_PARAM_OPS_FL_NOARG)) |
108 | return -EINVAL; | 108 | return -EINVAL; |
109 | pr_debug("handling %s with %p\n", param, | 109 | pr_debug("handling %s with %p\n", param, |
110 | params[i].ops->set); | 110 | params[i].ops->set); |
@@ -318,7 +318,7 @@ int param_get_bool(char *buffer, const struct kernel_param *kp) | |||
318 | EXPORT_SYMBOL(param_get_bool); | 318 | EXPORT_SYMBOL(param_get_bool); |
319 | 319 | ||
320 | struct kernel_param_ops param_ops_bool = { | 320 | struct kernel_param_ops param_ops_bool = { |
321 | .flags = KERNEL_PARAM_FL_NOARG, | 321 | .flags = KERNEL_PARAM_OPS_FL_NOARG, |
322 | .set = param_set_bool, | 322 | .set = param_set_bool, |
323 | .get = param_get_bool, | 323 | .get = param_get_bool, |
324 | }; | 324 | }; |
@@ -369,7 +369,7 @@ int param_set_bint(const char *val, const struct kernel_param *kp) | |||
369 | EXPORT_SYMBOL(param_set_bint); | 369 | EXPORT_SYMBOL(param_set_bint); |
370 | 370 | ||
371 | struct kernel_param_ops param_ops_bint = { | 371 | struct kernel_param_ops param_ops_bint = { |
372 | .flags = KERNEL_PARAM_FL_NOARG, | 372 | .flags = KERNEL_PARAM_OPS_FL_NOARG, |
373 | .set = param_set_bint, | 373 | .set = param_set_bint, |
374 | .get = param_get_int, | 374 | .get = param_get_int, |
375 | }; | 375 | }; |