summaryrefslogtreecommitdiff
path: root/include/linux/device
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-09 18:58:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-10 13:49:02 +0100
commit38cdadefa2feecc9e7aa5f67bc4aea5b9a8ca59f (patch)
tree5747ce37bc57c13263046d429ddc65624b07ab3e /include/linux/device
parent2e45fc5502af9826617a96fe63aee055002cac97 (diff)
driver core: make subsys_dev_iter_next() static
The function subsys_dev_iter_next() is only used in drivers/base/bus.c so make it static to that file and remove the global export. Reviewed-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20230109175810.2965448-4-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device')
-rw-r--r--include/linux/device/bus.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h
index 67cb5b29f62d..4f994d8fce0c 100644
--- a/include/linux/device/bus.h
+++ b/include/linux/device/bus.h
@@ -154,7 +154,6 @@ struct subsys_dev_iter {
struct klist_iter ki;
const struct device_type *type;
};
-struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter);
void subsys_dev_iter_exit(struct subsys_dev_iter *iter);
int bus_for_each_dev(struct bus_type *bus, struct device *start, void *data,