]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: marvell: add macro to make distinction between node names
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 30 Aug 2018 08:15:00 +0000 (10:15 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 21 Sep 2018 14:13:30 +0000 (16:13 +0200)
Because the label is different between CPs, the full path of a node is
unique. However, when referring to the end of the path only (the node
name), this name is not unique anymore.

The *thermal_zone_of_sensor_register() functions of the thermal core
present this limitation and prevent having a thermal-zone per CP.

Add a macro to make the distinction between node names to solve this
situation.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/armada-common.dtsi

index d5e8aedec18878886ce8c069779573cc87ef772c..b29c6405d214b672b338fc21e8bd5bfeaf291b7d 100644 (file)
@@ -7,4 +7,5 @@
 #define PASTER(x, y) x ## y
 #define EVALUATOR(x, y) PASTER(x, y)
 #define CP110_LABEL(name) EVALUATOR(CP110_NAME, EVALUATOR(_, name))
+#define CP110_NODE_NAME(name) EVALUATOR(CP110_NAME, EVALUATOR(-, name))
 #define ADDRESSIFY(addr) EVALUATOR(0x, addr)