doc: gen_devicetree_rest: Fix glob to handle both .yaml and .yml

The glob search was only finding .yaml files, however we do have a
few .yml bindings that got missed.

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-07-15 10:38:05 -05:00 committed by Marti Bolivar
parent 39a7381bb9
commit c453220006

View file

@ -204,6 +204,8 @@ def load_bindings(dts_roots):
binding_files = []
for dts_root in dts_roots:
binding_files.extend(glob.glob(f'{dts_root}/dts/bindings/**/*.yml',
recursive=True))
binding_files.extend(glob.glob(f'{dts_root}/dts/bindings/**/*.yaml',
recursive=True))