coresight-tpdm: fix dsb edge ctrl mask interface

Fix edge ctrl mask interface for DSB subunit to accept DSB event ranges
in both hexadecimal and decimal format.

Change-Id: Ibe650067fc30a65defa2c0e76ef5526235980f72
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
This commit is contained in:
Shashank Mittal 2016-06-10 08:28:20 -07:00 committed by Kyle Yan
parent 338876f6fb
commit 82d3e9f63a

View file

@ -2647,11 +2647,11 @@ static ssize_t tpdm_store_dsb_edge_ctrl_mask(struct device *dev,
size_t size)
{
struct tpdm_drvdata *drvdata = dev_get_drvdata(dev->parent);
unsigned long start, end, val;
unsigned start, end, val;
uint32_t set;
int i, bit, reg;
if (sscanf(buf, "%lx %lx %lx", &start, &end, &val) != 3)
if (sscanf(buf, "%ui %ui %ui", &start, &end, &val) != 3)
return -EINVAL;
if (!test_bit(TPDM_DS_DSB, drvdata->datasets) ||
(start >= TPDM_DSB_MAX_LINES) || (end >= TPDM_DSB_MAX_LINES))