driver core: bus: constify some internal functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 11:13:29 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 09:43:43 +0000 (10:43 +0100)
commit4dd1f3f8f99ec51dbcfeffe95b8ab68161a332a4
tree935840109b5c72d5339762115ffdd4eb5c2042d8
parentf91482be9b480dfce2616f5ba3fa548b8ed41efb
driver core: bus: constify some internal functions

The functions add_probe_files() and remove_probe_files() should be
taking a const * to bus_type, not just a *, so fix that up.  These
functions should really be removed entirely and an attribute group used
instead, but for now, make this change so that other const work can
continue.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230208111330.439504-21-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c