dtoc: Detect unexpected suffix on .of_match
authorSimon Glass <sjg@chromium.org>
Sun, 4 Jul 2021 18:19:48 +0000 (12:19 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
commit86ff01e890a72fb2b8cefab542d4b9123fe83036
tree7fbfc2392b9cf0cc1b02fd84d4036a6f4bf6fe1f
parent4f1727a7e31c192d294280b0379b522f57b54d31
dtoc: Detect unexpected suffix on .of_match

Some rockchip drivers use a suffix on the of_match line which is not
strictly valid. At present this causes the parsing to fail. Fix this
and offer a warning.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/src_scan.py
tools/dtoc/test_src_scan.py