aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSai Prakash Ranjan <[email protected]>2020-07-16 11:57:30 -0600
committerGreg Kroah-Hartman <[email protected]>2020-07-21 15:48:38 +0200
commit9c1a58b77e8d34b36f7d98bce6cc7d11478c001e (patch)
treea75c86e9afe6e612caae1ce0a6571eca5782b5fb
parentc4d41d00552754cc8cdd66a52da9b7c203884d49 (diff)
coresight: replicator: Use CS_AMBA_ID macro for id table
Use CS_AMBA_ID macro for dynamic replicator AMBA id table instead of open coding. Signed-off-by: Sai Prakash Ranjan <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/hwtracing/coresight/coresight-replicator.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c
index e7dc1c31d20d..c619b456f55a 100644
--- a/drivers/hwtracing/coresight/coresight-replicator.c
+++ b/drivers/hwtracing/coresight/coresight-replicator.c
@@ -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 = {