coresight: replicator: Use CS_AMBA_ID macro for id table
authorSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Thu, 16 Jul 2020 17:57:30 +0000 (11:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 13:48:38 +0000 (15:48 +0200)
Use CS_AMBA_ID macro for dynamic replicator AMBA id table
instead of open coding.

Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200716175746.3338735-2-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-replicator.c

index e7dc1c31d20d4f215769291ba41eb5b5a7ef3164..c619b456f55acc73e37ad5e41bcb80b3f3129853 100644 (file)
@@ -348,16 +348,9 @@ static int dynamic_replicator_probe(struct amba_device *adev,
 }
 
 static const struct amba_id dynamic_replicator_ids[] = {
-       {
-               .id     = 0x000bb909,
-               .mask   = 0x000fffff,
-       },
-       {
-               /* Coresight SoC-600 */
-               .id     = 0x000bb9ec,
-               .mask   = 0x000fffff,
-       },
-       { 0, 0 },
+       CS_AMBA_ID(0x000bb909),
+       CS_AMBA_ID(0x000bb9ec),         /* Coresight SoC-600 */
+       {},
 };
 
 static struct amba_driver dynamic_replicator_driver = {