diff options
author | Rob Herring <robh@kernel.org> | 2019-10-28 17:32:32 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2019-10-29 11:47:14 +0100 |
commit | 494f8b10d832456a96be4ee7317425f6936cabc8 (patch) | |
tree | db7af0599f5312da9742f5c8875d17162c7d2719 /drivers | |
parent | Linux 5.4-rc1 (diff) | |
download | linux-494f8b10d832456a96be4ee7317425f6936cabc8.tar.xz linux-494f8b10d832456a96be4ee7317425f6936cabc8.zip |
resource: Add a resource_list_first_type helper
A common pattern is looping over a resource_list just to get a matching
entry with a specific type. Add resource_list_first_type() helper which
implements this.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions