summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-11 15:01:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-13 16:43:53 +0200
commit33ebea9bc0a36f62590d37d0a3c859759181573e (patch)
tree01618307dd77ac99844d453765e841d5650d91d7 /drivers/base/base.h
parentdriver core: driver: mark driver_add/remove_groups constant (diff)
downloadlinux-33ebea9bc0a36f62590d37d0a3c859759181573e.tar.xz
linux-33ebea9bc0a36f62590d37d0a3c859759181573e.zip
driver core: make device_release_driver_internal() take a const *
Change device_release_driver_internal() to take a const struct device_driver * as it is not modifying it at all. Cc: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20240611130103.3262749-10-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r--drivers/base/base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index cba8307908c7..d332b87cde9e 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -155,7 +155,7 @@ bool bus_is_registered(const struct bus_type *bus);
int bus_add_driver(struct device_driver *drv);
void bus_remove_driver(struct device_driver *drv);
-void device_release_driver_internal(struct device *dev, struct device_driver *drv,
+void device_release_driver_internal(struct device *dev, const struct device_driver *drv,
struct device *parent);
void driver_detach(struct device_driver *drv);