diff options
author | Furquan Shaikh <furquan@google.com> | 2021-09-16 16:05:56 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-20 12:17:13 +0000 |
commit | 0df32c85add990dac5e66e2ced3943e6f7e7905b (patch) | |
tree | 27befeb53a3cc8c967ca68a8ca021b0aac5ed596 /src/drivers/net/chip.h | |
parent | f0227ee2a88aafc460d0137f9d2e61bd813aea0e (diff) |
sconfig: Emit device structure pointers if alias names are provided
This change uses _dev_${ALIAS_NAME} as the name for `struct device` if
the device has an alias. In addition to that, it emits
_dev_${ALIAS_NAME}_ptr which points to the device structure. This
allows developers to directly reference a particular device in the tree
using alias name without having to walk the entire path. In later CLs,
mainboards are transitioned to use this newly emitted device structure
pointers.
Change-Id: I8306d9efba8e5ca5c0bda41baac9c90ad8b73ece
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57657
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/drivers/net/chip.h')
0 files changed, 0 insertions, 0 deletions