devices: _PASTE macro relocated from init.h to common.h
The _PASTE and _PASTE2 macros are relocated from init.h (device handling) to toolchain/common.h for better reuse. _PASTE and PASTE_2 macro are renamed to _CONCAT and _DO_CONCAT. These names are more descriptive. Change-Id: Ie2f5b0cba1f1179eb3fb5ec00236a75a73267f98 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
This commit is contained in:
parent
2e2ad8166e
commit
b798c0adad
2 changed files with 4 additions and 5 deletions
|
@ -97,10 +97,6 @@
|
|||
*
|
||||
* @return A pointer to the device object created by SYS_DEFINE_DEVICE()
|
||||
*/
|
||||
|
||||
#define _PASTE2(a, b) a##b
|
||||
#define _PASTE(a, b) _PASTE2(a, b)
|
||||
|
||||
#define SYS_GET_DEVICE(name) (&(_PASTE(__initconfig_, name)))
|
||||
#define SYS_GET_DEVICE(name) (&(_CONCAT(__initconfig_, name)))
|
||||
|
||||
#endif /* _INIT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue