mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
driver core: bus: constify bus_rescan_devices()
The bus_rescan_devices() function was missed in the previous change of the bus_for_each* constant pointer changes, so fix it up now to take a const * to struct bus_type. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/20230313182918.1312597-25-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00c4a3c47d
commit
9622b9f282
2 changed files with 2 additions and 2 deletions
|
@ -769,7 +769,7 @@ static int __must_check bus_rescan_devices_helper(struct device *dev,
|
||||||
* attached and rescan it against existing drivers to see if it matches
|
* attached and rescan it against existing drivers to see if it matches
|
||||||
* any by calling device_attach() for the unbound devices.
|
* any by calling device_attach() for the unbound devices.
|
||||||
*/
|
*/
|
||||||
int bus_rescan_devices(struct bus_type *bus)
|
int bus_rescan_devices(const struct bus_type *bus)
|
||||||
{
|
{
|
||||||
return bus_for_each_dev(bus, NULL, NULL, bus_rescan_devices_helper);
|
return bus_for_each_dev(bus, NULL, NULL, bus_rescan_devices_helper);
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ extern int __must_check bus_register(const struct bus_type *bus);
|
||||||
|
|
||||||
extern void bus_unregister(const struct bus_type *bus);
|
extern void bus_unregister(const struct bus_type *bus);
|
||||||
|
|
||||||
extern int __must_check bus_rescan_devices(struct bus_type *bus);
|
extern int __must_check bus_rescan_devices(const struct bus_type *bus);
|
||||||
|
|
||||||
struct bus_attribute {
|
struct bus_attribute {
|
||||||
struct attribute attr;
|
struct attribute attr;
|
||||||
|
|
Loading…
Reference in a new issue