]> git.ipfire.org Git - thirdparty/linux.git/commit
nvmem: make nvmem_bus_type constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2025 18:19:01 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:30:05 +0000 (14:30 +0200)
commitfc0368121686065287a24b6bf7deda20a9fafcd7
tree1d3a36ea1fefa0532737353629e638821994e616
parent9d9659b054c8ff888c33e3efcbf09db4c4ab9dc6
nvmem: make nvmem_bus_type constant

Now that the driver core can properly handle constant struct bus_type,
move the nvmem_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Srinivas Kandagatla <srini@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250712181905.6738-6-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c