aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2022-10-01 18:54:26 +0200
committerGreg Kroah-Hartman <[email protected]>2022-11-09 15:49:32 +0100
commitfa627348cfc7fb174468d88756b83c2d97890b07 (patch)
tree3beed87894c45fba3315abcbad6f2e3c67e18b32 /lib/mpi/mpi-mod.c
parent9a6800d1b9da21302758fb37e58b3ab1cadfc643 (diff)
driver core: class: make namespace and get_ownership take const *
The callbacks in struct class namespace() and get_ownership() do not modify the struct device passed to them, so mark the pointer as constant and fix up all callbacks in the kernel to have the correct function signature. This helps make it more obvious what calls and callbacks do, and do not, modify structures passed to them. Cc: "Rafael J. Wysocki" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions