hwtracing: hisi_ptt: Factor out filter allocation and release operation
authorYicong Yang <yangyicong@hisilicon.com>
Wed, 21 Jun 2023 09:28:00 +0000 (17:28 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 21 Jun 2023 10:52:05 +0000 (11:52 +0100)
commita3ecaba7017f5d02d1ad60229cc14d5f0cda0c20
tree555c764cd8719af1a5beeecce522ed86dce00f69
parent185891f03f712639c082e08fc9986ff214b5d617
hwtracing: hisi_ptt: Factor out filter allocation and release operation

Factor out the allocation and release of filters. This will make it easier
to extend and manage the function of the filter.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230621092804.15120-2-yangyicong@huawei.com
drivers/hwtracing/ptt/hisi_ptt.c