]> Git Repo - linux.git/commit - drivers/cpufreq/cpufreq_conservative.c
cpufreq: unify show() and store() naming and use __ATTR_XX
authorLianjie Zhang <[email protected]>
Thu, 10 Mar 2022 14:38:30 +0000 (22:38 +0800)
committerRafael J. Wysocki <[email protected]>
Thu, 10 Mar 2022 18:55:05 +0000 (19:55 +0100)
commit85750bcd480c74b13661ee2c9db49de500fd2823
treea4cec5a7419b18b557b6f5bdad3d7c75724b87ad
parent075c3c483c86aaeadbfdb56ff0ffa67abe582eca
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 <[email protected]>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.c
drivers/cpufreq/cpufreq_governor.h
drivers/cpufreq/cpufreq_ondemand.c
This page took 0.084179 seconds and 4 git commands to generate.