Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

samples/kobject: fix path comment

The introductory comment still says the example creates
/sys/kernel/kobject-example, but the code actually creates
/sys/kernel/kobject_example.

Update both comments to reflect the actual sysfs paths. Also,
fix "tree"->"three" typo in kset-example.c.

Signed-off-by: Meng Shao Liu <sau525@gmail.com>
Link: https://lore.kernel.org/r/5be61d284a1850f573658f1c105f0b6062e41332.1752646650.git.sau525@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Meng Shao Liu and committed by
Greg Kroah-Hartman
42573e4d 47e6715b

+3 -3
+1 -1
samples/kobject/kobject-example.c
··· 13 13 14 14 /* 15 15 * This module shows how to create a simple subdirectory in sysfs called 16 - * /sys/kernel/kobject-example In that directory, 3 files are created: 16 + * /sys/kernel/kobject_example In that directory, 3 files are created: 17 17 * "foo", "baz", and "bar". If an integer is written to these files, it can be 18 18 * later read out of it. 19 19 */
+2 -2
samples/kobject/kset-example.c
··· 14 14 15 15 /* 16 16 * This module shows how to create a kset in sysfs called 17 - * /sys/kernel/kset-example 18 - * Then tree kobjects are created and assigned to this kset, "foo", "baz", 17 + * /sys/kernel/kset_example 18 + * Then three kobjects are created and assigned to this kset, "foo", "baz", 19 19 * and "bar". In those kobjects, attributes of the same name are also 20 20 * created and if an integer is written to these files, it can be later 21 21 * read out of it.