thermal: Shorten name of sysfs callbacks
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 3 Apr 2018 09:49:03 +0000 (15:19 +0530)
committerZhang Rui <rui.zhang@intel.com>
Tue, 22 May 2018 02:07:09 +0000 (10:07 +0800)
commit33e678d47d1f3e8d485d38c87bc494ad7bf697f0
tree4c0194ac3b3819eb91ccfe637efa9ae5971bbf02
parent771c577c23bac90597c685971d7297ea00f99d11
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>
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h
drivers/thermal/thermal_sysfs.c