summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-08 10:15:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-10 09:41:57 +0200
commitf8fb469147e7db57e3f78d46f3f427705b4a1935 (patch)
tree7b8249447598ab655067dd5be0d115eda522ed36 /drivers/base/base.h
parentab7a880263c30b1675850a584c206770f5545c2f (diff)
downloadlinux-f8fb469147e7db57e3f78d46f3f427705b4a1935.tar.gz
linux-f8fb469147e7db57e3f78d46f3f427705b4a1935.tar.bz2
linux-f8fb469147e7db57e3f78d46f3f427705b4a1935.zip
driver core: make driver_find_device() take a const *
The function driver_find_device() does not modify the struct device_driver structure directly, so it is safe to be marked as a constant pointer type. As that is fixed up, also change the function signature on the inline functions that call this, which are: driver_find_device_by_name() driver_find_device_by_of_node() driver_find_device_by_devt() driver_find_next_device() driver_find_device_by_acpi_dev() Cc: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/2024070849-broken-front-9eb5@gregkh Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
0 files changed, 0 insertions, 0 deletions