Commit 38a74776 authored by James Clark's avatar James Clark Committed by huangfangrun
Browse files

coresight: Re-use same function for similar sysfs register accessors

mainline inclusion
from mainline-v6.1-rc1
commit 08e9fa5f
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=08e9fa5f3663eaab20ea3430023d1dfbf60d29f5



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

Currently each accessor macro creates an identical function which wastes
space in the text area and pollutes the ftrace function names. 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.

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-4-james.clark@arm.com


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