Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee828fb2 authored by Satyajit Desai's avatar Satyajit Desai
Browse files

coresight-tpdm: Change TPDM api to be upstream compatible



Current TPDM api's rely on older definitions of source ops.
Modify the api definition to be upstream compatible.

Change-Id: I12d1fe1758e089f25c91282d0d5d8fd9edd36a8a
Signed-off-by: default avatarSatyajit Desai <sadesai@codeaurora.org>
parent 6c0da8be
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -655,7 +655,7 @@ static void __tpdm_enable(struct tpdm_drvdata *drvdata)
}

static int tpdm_enable(struct coresight_device *csdev,
		       struct perf_event_attr *attr,  u32 mode)
		       struct perf_event *event, u32 mode)
{
	struct tpdm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent);
	int ret;
@@ -731,7 +731,8 @@ static void __tpdm_disable(struct tpdm_drvdata *drvdata)
	TPDM_LOCK(drvdata);
}

static void tpdm_disable(struct coresight_device *csdev)
static void tpdm_disable(struct coresight_device *csdev,
			 struct perf_event *event)
{
	struct tpdm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent);