diff options
author | Nicholas Chin <nic.c3.14@gmail.com> | 2024-10-05 22:11:18 -0600 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2024-11-10 10:35:44 +0000 |
commit | 05a13e7ed9b97b23af69202bedf2ea42b57e633f (patch) | |
tree | a8e04a455c7881fd72e6da1f8680187957266052 /src/include/device | |
parent | 2834090e9921c755cb0fd263c941db70f0d1fcde (diff) |
sconfig: Move (WEAK_)DEV_PTR from device.h to static.h
Similar to commit 865173153760 ("sconfig: Move config_of_soc from
device.h to static.h"), move these macros to static.h to separate
dependencies on device.h and static.h. These macros resolve to device
alises that are declared in the generated static_devices.h header, so
move them to static.h which includes static_devices.h.
Since static.h remains included in device.h, any source that uses these
macros should still compile correctly. Subsequent commits will add
static.h to files that need them, after which static.h can be dropped
from device.h.
Change-Id: I1c76ad749769591da9c102b11eb618e93b68bd7c
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84676
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/device.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h index b52be54177..6b4f64c781 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -502,12 +502,4 @@ void scan_smbus(struct device *bus); void scan_generic_bus(struct device *bus); void scan_static_bus(struct device *bus); -/* Macro to generate `struct device *` name that points to a device with the given alias. */ -#define DEV_PTR(_alias) _dev_##_alias##_ptr - -/* Macro to generate weak `struct device *` definition that points to a device with the given - alias. */ -#define WEAK_DEV_PTR(_alias) \ - __weak DEVTREE_CONST struct device *const DEV_PTR(_alias) - #endif /* DEVICE_H */ |