diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-05 22:33:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-05 22:33:07 -0400 |
commit | 3ef2bc099d1cce09e2844467e2ced98e1a44609d (patch) | |
tree | be3d1ea5da1ba9f3a664d5da7f34574bb7930ce7 /scripts/dtc/libfdt/libfdt_env.h | |
parent | 2eecf3a49f1ff24c6116c954dd74e83f227fc716 (diff) | |
parent | 17a70355ea576843a7ac851f1db26872a50b2850 (diff) |
Merge tag 'devicetree-for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull DeviceTree updates from Rob Herring:
- fix sparse warnings in drivers/of/
- add more overlay unittests
- update dtc to v1.4.4-8-g756ffc4f52f6. This adds more checks on dts
files such as unit-address formatting and stricter character sets for
node and property names
- add a common DT modalias function
- move trivial-devices.txt up and out of i2c dir
- ARM NVIC interrupt controller binding
- vendor prefixes for Sensirion, Dioo, Nordic, ROHM
- correct some binding file locations
* tag 'devicetree-for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (24 commits)
of: fix sparse warnings in fdt, irq, reserved mem, and resolver code
of: fix sparse warning in of_pci_range_parser_one
of: fix sparse warnings in of_find_next_cache_node
of/unittest: Missing unlocks on error
of: fix uninitialized variable warning for overlay test
of: fix unittest build without CONFIG_OF_OVERLAY
of: Add unit tests for applying overlays
of: per-file dtc compiler flags
fpga: region: add missing DT documentation for config complete timeout
of: Add vendor prefix for ROHM Semiconductor
of: fix "/cpus" reference leak in of_numa_parse_cpu_nodes()
of: Add vendor prefix for Nordic Semiconductor
dt-bindings: arm,nvic: Binding for ARM NVIC interrupt controller on Cortex-M
dtc: update warning settings for new bus and node/property name checks
scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6
scripts/dtc: automate getting dtc version and log in update script
of: Add function for generating a DT modalias with a newline
of: fix of_device_get_modalias returned length when truncating buffers
Documentation: devicetree: move trivial-devices out of I2C realm
dt-bindings: add vendor prefix for Dioo
..
Diffstat (limited to 'scripts/dtc/libfdt/libfdt_env.h')
-rw-r--r-- | scripts/dtc/libfdt/libfdt_env.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/scripts/dtc/libfdt/libfdt_env.h b/scripts/dtc/libfdt/libfdt_env.h index 99f936dacc60..952056cddf09 100644 --- a/scripts/dtc/libfdt/libfdt_env.h +++ b/scripts/dtc/libfdt/libfdt_env.h | |||
@@ -58,16 +58,16 @@ | |||
58 | #include <string.h> | 58 | #include <string.h> |
59 | 59 | ||
60 | #ifdef __CHECKER__ | 60 | #ifdef __CHECKER__ |
61 | #define __force __attribute__((force)) | 61 | #define FDT_FORCE __attribute__((force)) |
62 | #define __bitwise __attribute__((bitwise)) | 62 | #define FDT_BITWISE __attribute__((bitwise)) |
63 | #else | 63 | #else |
64 | #define __force | 64 | #define FDT_FORCE |
65 | #define __bitwise | 65 | #define FDT_BITWISE |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | typedef uint16_t __bitwise fdt16_t; | 68 | typedef uint16_t FDT_BITWISE fdt16_t; |
69 | typedef uint32_t __bitwise fdt32_t; | 69 | typedef uint32_t FDT_BITWISE fdt32_t; |
70 | typedef uint64_t __bitwise fdt64_t; | 70 | typedef uint64_t FDT_BITWISE fdt64_t; |
71 | 71 | ||
72 | #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) | 72 | #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) |
73 | #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) | 73 | #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) |
@@ -80,29 +80,29 @@ typedef uint64_t __bitwise fdt64_t; | |||
80 | 80 | ||
81 | static inline uint16_t fdt16_to_cpu(fdt16_t x) | 81 | static inline uint16_t fdt16_to_cpu(fdt16_t x) |
82 | { | 82 | { |
83 | return (__force uint16_t)CPU_TO_FDT16(x); | 83 | return (FDT_FORCE uint16_t)CPU_TO_FDT16(x); |
84 | } | 84 | } |
85 | static inline fdt16_t cpu_to_fdt16(uint16_t x) | 85 | static inline fdt16_t cpu_to_fdt16(uint16_t x) |
86 | { | 86 | { |
87 | return (__force fdt16_t)CPU_TO_FDT16(x); | 87 | return (FDT_FORCE fdt16_t)CPU_TO_FDT16(x); |
88 | } | 88 | } |
89 | 89 | ||
90 | static inline uint32_t fdt32_to_cpu(fdt32_t x) | 90 | static inline uint32_t fdt32_to_cpu(fdt32_t x) |
91 | { | 91 | { |
92 | return (__force uint32_t)CPU_TO_FDT32(x); | 92 | return (FDT_FORCE uint32_t)CPU_TO_FDT32(x); |
93 | } | 93 | } |
94 | static inline fdt32_t cpu_to_fdt32(uint32_t x) | 94 | static inline fdt32_t cpu_to_fdt32(uint32_t x) |
95 | { | 95 | { |
96 | return (__force fdt32_t)CPU_TO_FDT32(x); | 96 | return (FDT_FORCE fdt32_t)CPU_TO_FDT32(x); |
97 | } | 97 | } |
98 | 98 | ||
99 | static inline uint64_t fdt64_to_cpu(fdt64_t x) | 99 | static inline uint64_t fdt64_to_cpu(fdt64_t x) |
100 | { | 100 | { |
101 | return (__force uint64_t)CPU_TO_FDT64(x); | 101 | return (FDT_FORCE uint64_t)CPU_TO_FDT64(x); |
102 | } | 102 | } |
103 | static inline fdt64_t cpu_to_fdt64(uint64_t x) | 103 | static inline fdt64_t cpu_to_fdt64(uint64_t x) |
104 | { | 104 | { |
105 | return (__force fdt64_t)CPU_TO_FDT64(x); | 105 | return (FDT_FORCE fdt64_t)CPU_TO_FDT64(x); |
106 | } | 106 | } |
107 | #undef CPU_TO_FDT64 | 107 | #undef CPU_TO_FDT64 |
108 | #undef CPU_TO_FDT32 | 108 | #undef CPU_TO_FDT32 |