Home
last modified time | relevance | path

Searched hist:"862 f6a84d1bf01435fdd6aa8b2811c88ab1f06f4" (Results 1 – 1 of 1) sorted by relevance

/linux/samples/kobject/
H A Dkset-example.cdiff 862f6a84d1bf01435fdd6aa8b2811c88ab1f06f4 Wed Feb 08 04:54:51 CET 2023 Thomas Weißschuh <linux@weissschuh.net> samples/kobject: make kobj_type structure constant

Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
the driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definition to prevent
modification at runtime.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230208-kobj_type-samples-v1-1-fca804a8e9f3@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>