]> www.infradead.org Git - linux.git/commit
driver core: make driver_detach() take a const *
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2024 13:01:08 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2024 14:43:54 +0000 (16:43 +0200)
commitf6e98ef5f78a106821d451f9783dd96ba8551cb3
tree21bdd382da44677f1f47dec91e3c7b94dc283bcc
parent33ebea9bc0a36f62590d37d0a3c859759181573e
driver core: make driver_detach() take a const *

driver_detach() does not modify the driver itself, so make the pointer
constant.  In doing so, the function driver_allows_async_probing() also
needs to be changed so that the pointer type passes through to that
function properly.

Cc: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20240611130103.3262749-11-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/base.h
drivers/base/dd.c