diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2026-01-19 17:27:57 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-01-22 17:13:36 +0100 |
| commit | 08a55792245a7bd395c947ff88b08b6abdd56f93 (patch) | |
| tree | 82badc9651b108ec60c7c5ae27834ce0a7007536 /drivers/base | |
| parent | 61b76d07d2b46a86ea91267d36449fc78f8a1f6e (diff) | |
| download | linux-next-08a55792245a7bd395c947ff88b08b6abdd56f93.tar.gz linux-next-08a55792245a7bd395c947ff88b08b6abdd56f93.zip | |
driver-core: move devres_for_each_res() to base.h
devres_for_each_res() is only used by .../firmware_loader/main.c, which
already includes base.h.
The usage of devres_for_each_res() by code outside of driver-core is
questionable, hence move it to base.h.
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260119162920.77189-1-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'drivers/base')
| -rw-r--r-- | drivers/base/base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index 430cbefbc97f..60ee4d466b29 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -213,6 +213,10 @@ static inline void device_set_driver(struct device *dev, const struct device_dri WRITE_ONCE(dev->driver, (struct device_driver *)drv); } +void devres_for_each_res(struct device *dev, dr_release_t release, + dr_match_t match, void *match_data, + void (*fn)(struct device *, void *, void *), + void *data); int devres_release_all(struct device *dev); void device_block_probing(void); void device_unblock_probing(void); |
