diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2018-10-05 08:42:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-11 06:12:54 -0400 |
commit | 25e3c0062a089544a861f72287a1fa3ce34b00b7 (patch) | |
tree | 520bdaacda1105b5db57d912b99817fec26d226f /drivers/hwtracing/stm | |
parent | cb6102bd99efe35f016dc6d7282e681e6dbde154 (diff) |
stm class: Clarify configfs root type/operations names
The current naming of stp-policy root type and group ops is confusing,
rename them for better readability.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/stm')
-rw-r--r-- | drivers/hwtracing/stm/policy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index 15d35d891643..530448bd5a34 100644 --- a/drivers/hwtracing/stm/policy.c +++ b/drivers/hwtracing/stm/policy.c | |||
@@ -311,7 +311,7 @@ static const struct config_item_type stp_policy_type = { | |||
311 | }; | 311 | }; |
312 | 312 | ||
313 | static struct config_group * | 313 | static struct config_group * |
314 | stp_policies_make(struct config_group *group, const char *name) | 314 | stp_policy_make(struct config_group *group, const char *name) |
315 | { | 315 | { |
316 | struct config_group *ret; | 316 | struct config_group *ret; |
317 | struct stm_device *stm; | 317 | struct stm_device *stm; |
@@ -368,12 +368,12 @@ unlock_policy: | |||
368 | return ret; | 368 | return ret; |
369 | } | 369 | } |
370 | 370 | ||
371 | static struct configfs_group_operations stp_policies_group_ops = { | 371 | static struct configfs_group_operations stp_policy_root_group_ops = { |
372 | .make_group = stp_policies_make, | 372 | .make_group = stp_policy_make, |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static const struct config_item_type stp_policies_type = { | 375 | static const struct config_item_type stp_policy_root_type = { |
376 | .ct_group_ops = &stp_policies_group_ops, | 376 | .ct_group_ops = &stp_policy_root_group_ops, |
377 | .ct_owner = THIS_MODULE, | 377 | .ct_owner = THIS_MODULE, |
378 | }; | 378 | }; |
379 | 379 | ||
@@ -381,7 +381,7 @@ static struct configfs_subsystem stp_policy_subsys = { | |||
381 | .su_group = { | 381 | .su_group = { |
382 | .cg_item = { | 382 | .cg_item = { |
383 | .ci_namebuf = "stp-policy", | 383 | .ci_namebuf = "stp-policy", |
384 | .ci_type = &stp_policies_type, | 384 | .ci_type = &stp_policy_root_type, |
385 | }, | 385 | }, |
386 | }, | 386 | }, |
387 | }; | 387 | }; |