OpenCloudOS-Kernel/include/linux/device
Greg Kroah-Hartman fa627348cf 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" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20221001165426.2690912-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-09 15:49:32 +01:00
..
bus.h driver core: Add dma_cleanup callback in bus_type 2022-04-28 15:32:20 +02:00
class.h driver core: class: make namespace and get_ownership take const * 2022-11-09 15:49:32 +01:00
driver.h Revert "driver core: Delete driver_deferred_probe_check_state()" 2022-08-23 13:14:02 +02:00