diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-02-10 13:01:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-02-13 12:49:14 +0300 |
commit | 94ba1c316b9c0f9b017f7cd7eac84adae693e80f (patch) | |
tree | 192b40ef7db58f58646c27f15af3b1b627542b7a /include/net | |
parent | afd888c3e19ceb5247158fe2fabbf7234937a515 (diff) | |
download | linux-94ba1c316b9c0f9b017f7cd7eac84adae693e80f.tar.xz |
devlink: fix the name of value arg of devl_param_driverinit_value_get()
Probably due to copy-paste error, the name of the arg is "init_val"
which is misleading, as the pointer is used to point to struct where to
store the current value. Rename it to "val" and change the arg comment
a bit on the way.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/devlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 8ed960345f37..6a942e70e451 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -1784,7 +1784,7 @@ void devlink_params_unregister(struct devlink *devlink, const struct devlink_param *params, size_t params_count); int devl_param_driverinit_value_get(struct devlink *devlink, u32 param_id, - union devlink_param_value *init_val); + union devlink_param_value *val); void devl_param_driverinit_value_set(struct devlink *devlink, u32 param_id, union devlink_param_value init_val); void devl_param_value_changed(struct devlink *devlink, u32 param_id); |