aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLianjie Zhang <zhanglianjie@uniontech.com>2022-03-10 22:38:30 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-03-10 19:55:05 +0100
commit85750bcd480c74b13661ee2c9db49de500fd2823 (patch)
treea4cec5a7419b18b557b6f5bdad3d7c75724b87ad /tools/perf/scripts/python
parent075c3c483c86aaeadbfdb56ff0ffa67abe582eca (diff)
cpufreq: unify show() and store() naming and use __ATTR_XX
Usually, sysfs attributes have .show and .store and their naming convention is filename_show() and filename_store(). But in cpufreq the naming convention of these functions is show_filename() and store_filename() which prevents __ATTR_RW() and __ATTR_RO() from being used in there to simplify code. Accordingly, change the naming convention of the sysfs .show and .store methods in cpufreq to follow the one expected by __ATTR_RW() and __ATTR_RO() and use these macros in that code. Signed-off-by: Lianjie Zhang <zhanglianjie@uniontech.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions