diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-09 18:58:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-10 13:49:09 +0100 |
commit | b0a8a59a1c44c07807afe50c6bd21a33c9ec98b7 (patch) | |
tree | ecefd29d397c2ffa7803edc5a4aa6be2f02ce802 /drivers/base | |
parent | driver core: make subsys_dev_iter_exit() static (diff) | |
download | linux-b0a8a59a1c44c07807afe50c6bd21a33c9ec98b7.tar.xz linux-b0a8a59a1c44c07807afe50c6bd21a33c9ec98b7.zip |
driver core: move struct subsys_dev_iter to a local file
struct subsys_dev_iter is not used by any code outside of
drivers/base/bus.c so move it into that file and out of the global bus.h
file.
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230109175810.2965448-6-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/bus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index bde52fd1d3e3..428c26c6b615 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -911,6 +911,11 @@ void bus_sort_breadthfirst(struct bus_type *bus, } EXPORT_SYMBOL_GPL(bus_sort_breadthfirst); +struct subsys_dev_iter { + struct klist_iter ki; + const struct device_type *type; +}; + /** * subsys_dev_iter_init - initialize subsys device iterator * @iter: subsys iterator to initialize |