mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
coresight: etm4x: Fix BMVAL misuse
The second argument should be the lsb and the third argument should be the msb. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20191104181251.26732-15-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
edda32dabe
commit
9c7db49475
1 changed files with 1 additions and 1 deletions
|
@ -1246,7 +1246,7 @@ static ssize_t addr_exlevel_s_ns_show(struct device *dev,
|
||||||
|
|
||||||
spin_lock(&drvdata->spinlock);
|
spin_lock(&drvdata->spinlock);
|
||||||
idx = config->addr_idx;
|
idx = config->addr_idx;
|
||||||
val = BMVAL(config->addr_acc[idx], 14, 8);
|
val = BMVAL(config->addr_acc[idx], 8, 14);
|
||||||
spin_unlock(&drvdata->spinlock);
|
spin_unlock(&drvdata->spinlock);
|
||||||
return scnprintf(buf, PAGE_SIZE, "%#lx\n", val);
|
return scnprintf(buf, PAGE_SIZE, "%#lx\n", val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue