diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-04-03 15:19:03 +0530 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2018-05-22 10:07:09 +0800 |
commit | 33e678d47d1f3e8d485d38c87bc494ad7bf697f0 (patch) | |
tree | 4c0194ac3b3819eb91ccfe637efa9ae5971bbf02 /drivers/thermal/thermal_core.h | |
parent | 771c577c23bac90597c685971d7297ea00f99d11 (diff) | |
download | linux-33e678d47d1f3e8d485d38c87bc494ad7bf697f0.tar.gz linux-33e678d47d1f3e8d485d38c87bc494ad7bf697f0.tar.bz2 linux-33e678d47d1f3e8d485d38c87bc494ad7bf697f0.zip |
thermal: Shorten name of sysfs callbacks
The naming isn't consistent across all sysfs callbacks in the thermal
core, some have a short name like type_show() and others have long names
like thermal_cooling_device_weight_show(). This patch tries to make it
consistent by shortening the name of sysfs callbacks.
Some of the sysfs files are named similarly for both thermal zone and
cooling device (like: type) and to avoid name clash between their
show/store routines, the cooling device specific sysfs callbacks are
prefixed with "cdev_".
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/thermal_core.h')
-rw-r--r-- | drivers/thermal/thermal_core.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 5e4150261500..eddee27c1d06 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -75,15 +75,10 @@ void thermal_zone_destroy_device_groups(struct thermal_zone_device *); void thermal_cooling_device_setup_sysfs(struct thermal_cooling_device *); void thermal_cooling_device_destroy_sysfs(struct thermal_cooling_device *cdev); /* used only at binding time */ -ssize_t -thermal_cooling_device_trip_point_show(struct device *, - struct device_attribute *, char *); -ssize_t thermal_cooling_device_weight_show(struct device *, - struct device_attribute *, char *); - -ssize_t thermal_cooling_device_weight_store(struct device *, - struct device_attribute *, - const char *, size_t); +ssize_t trip_point_show(struct device *, struct device_attribute *, char *); +ssize_t weight_show(struct device *, struct device_attribute *, char *); +ssize_t weight_store(struct device *, struct device_attribute *, const char *, + size_t); #ifdef CONFIG_THERMAL_STATISTICS void thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev, |