coresight: enable timestamp request based on trigger input

Set the variable to enable timestamp request based on trigger
input by default for CMB dataset type.

Change-Id: I38e641874a287961d5a8cd72bb13737ff4bcc974
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
This commit is contained in:
Sarangdhar Joshi 2015-06-10 14:24:56 -07:00 committed by Gerrit - the friendly Code Review server
parent 77e6196d90
commit 6c9fa7bf52
1 changed files with 8 additions and 0 deletions

View File

@ -708,6 +708,12 @@ static int tpdm_datasets_alloc(struct tpdm_drvdata *drvdata)
return 0;
}
static void tpdm_init_default_data(struct tpdm_drvdata *drvdata)
{
if (test_bit(TPDM_DS_CMB, drvdata->datasets))
drvdata->cmb->trig_ts = true;
}
static int tpdm_probe(struct platform_device *pdev)
{
int ret, i;
@ -767,6 +773,8 @@ static int tpdm_probe(struct platform_device *pdev)
if (ret)
return ret;
tpdm_init_default_data(drvdata);
desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
if (!desc)
return -ENOMEM;