summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJie Gan <jie.gan@oss.qualcomm.com>2025-09-25 18:42:33 +0800
committerSuzuki K Poulose <suzuki.poulose@arm.com>2025-11-10 10:07:42 +0000
commitb139702a889692ec30702534ebb1ae2b11ed1cbf (patch)
tree8f9a227a1ff5234d88ca621604c1111c8d0da634 /include
parent94baedb51dea4b0c97e3c9acd90953bec98d03e7 (diff)
coresight: change the sink_ops to accept coresight_path
Update the sink_enable functions to accept coresight_path instead of a generic void *data, as coresight_path encapsulates all the necessary data required by devices along the path. Tested-by: Carl Worth <carl@os.amperecomputing.com> Reviewed-by: Carl Worth <carl@os.amperecomputing.com> Reviewed-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20250925-fix_helper_data-v2-3-edd8a07c1646@oss.qualcomm.com
Diffstat (limited to 'include')
-rw-r--r--include/linux/coresight.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 2bee2e3bb1c6..56d0108658db 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -367,7 +367,7 @@ enum cs_mode {
*/
struct coresight_ops_sink {
int (*enable)(struct coresight_device *csdev, enum cs_mode mode,
- void *data);
+ struct coresight_path *path);
int (*disable)(struct coresight_device *csdev);
void *(*alloc_buffer)(struct coresight_device *csdev,
struct perf_event *event, void **pages,