devicetree.h: Move device includes to the end
Move the include of files from include/devicetree/*.h to the end so that when those files are processes they have access to all previous defined macros. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ee955c28c4
commit
0f64ae01eb
1 changed files with 7 additions and 6 deletions
|
@ -1474,12 +1474,6 @@
|
|||
* @}
|
||||
*/
|
||||
|
||||
#include <devicetree/adc.h>
|
||||
#include <devicetree/clocks.h>
|
||||
#include <devicetree/gpio.h>
|
||||
#include <devicetree/spi.h>
|
||||
#include <devicetree/dma.h>
|
||||
|
||||
/** @internal pay no attention to the man behind the curtain! */
|
||||
#define DT_PATH_INTERNAL(...) \
|
||||
UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
|
||||
|
@ -1492,4 +1486,11 @@
|
|||
/** @internal helper for DT_DASH(): prepends _ to a name */
|
||||
#define DT_DASH_PREFIX(name) _##name
|
||||
|
||||
/* have these last so the have access to all previously defined macros */
|
||||
#include <devicetree/adc.h>
|
||||
#include <devicetree/clocks.h>
|
||||
#include <devicetree/gpio.h>
|
||||
#include <devicetree/spi.h>
|
||||
#include <devicetree/dma.h>
|
||||
|
||||
#endif /* DEVICETREE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue