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:James Clark <james.clark@arm.com> Reviewed-by:
Mike Leach <mike.leach@linaro.org> Link: https://lore.kernel.org/r/20220830172614.340962-4-james.clark@arm.com Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by:
huangfangrun <huangfangrun1@h-partners.com>
Loading
Please sign in to comment