driver core: class: make class_register() take a const *
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Apr 2023 17:58:47 +0000 (19:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Apr 2023 19:42:46 +0000 (21:42 +0200)
commit43a7206b0963c2153c95d6985624d1dc1b3abd4d
tree60bcb1a3443249326a550c1fcf54ea7685c7ff01
parent979207cac517833c828133ffb2633bcdf6edce00
driver core: class: make class_register() take a const *

Now that the class code is cleaned up to not modify the class pointer
registered with it, change class_register() to take a const * to allow
the structure to be placed into read-only memory.

Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/2023040248-customary-release-4aec@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/base.h
drivers/base/class.c
include/linux/device/class.h