Commit 70df4d75 authored by James Clark's avatar James Clark Committed by huangfangrun
Browse files

coresight: cti-sysfs: Re-use same functions for similar sysfs register accessors

mainline inclusion
from mainline-v6.1-rc1
commit fbca79e5
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I6XLGY
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fbca79e55429fe0f73b2d2d190fd86bfda52c41b



----------------------------------------------------------------------

Currently each accessor macro creates an identical function which wastes
space in the text area and pollutes the ftrace function name list.
Change it so that the same function is used, but the register to access
is passed in as parameter rather than baked into each function.

Note that only the single accessor is used here and not
csdev_access_relaxed_read_pair() like in the previous commit, so
so a single unsigned offset value is stored instead.

Signed-off-by: default avatarJames Clark <james.clark@arm.com>
Reviewed-by: default avatarMike Leach <mike.leach@linaro.org>
Link: https://lore.kernel.org/r/20220830172614.340962-5-james.clark@arm.com


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarhuangfangrun <huangfangrun1@h-partners.com>
parent 38a74776
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment