[coreboot-gerrit] Patch merged into coreboot/master: src/device: Get device structure by path type