From: Sai Prakash Ranjan Date: Thu, 16 Jul 2020 17:57:30 +0000 (-0600) Subject: coresight: replicator: Use CS_AMBA_ID macro for id table X-Git-Tag: v5.9-rc1~144^2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c1a58b77e8d34b36f7d98bce6cc7d11478c001e;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mathieu Poirier Link: https://lore.kernel.org/r/20200716175746.3338735-2-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index e7dc1c31d20d4..c619b456f55ac 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 = {