forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kobject: Refactor kobject_set_name_vargs()
Setting name as per the format is not only useful for kobjects. It can also be used to set name for other things for e.g. setting the name of the struct attribute when multiple same kind of attributes need to be created with some identifier in name, instead of managing memory for names at such places case by case, it would be good if something like current kobject_set_name_vargs() can be utilized. Refactor kobject_set_name_vargs(), Create a new generic function set_name_vargs() which can be used for kobjects as well as at other places. This patch doesn't introduce any functionality change. Signed-off-by: Jagdish Gediya <jvgediya@linux.ibm.com>
- Loading branch information
1 parent
bc443c3
commit 4aac95b
Showing
3 changed files
with
42 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters