coresight: Simplify sysfs accessors by using csdev_access abstraction
mainline inclusion from mainline-v6.1-rc1 commit b6df1cbb 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=b6df1cbb415e543f2908f9c59a8fb20714b86879 ---------------------------------------------------------------------- The coresight_device struct is available in the sysfs accessor, and this contains a csdev_access struct which can be used to access registers. Use this instead of passing in the type of each drvdata so that a common function can be shared between all the cs drivers. No functional changes. Signed-off-by: NJames Clark <james.clark@arm.com> Reviewed-by: NMike Leach <mike.leach@linaro.org> Link: https://lore.kernel.org/r/20220830172614.340962-3-james.clark@arm.comSigned-off-by: NMathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Nhuangfangrun <huangfangrun1@h-partners.com>
Showing
想要评论请 注册 或 登录