aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/power
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-07-31 04:39:30 -0700
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-07-31 05:45:37 -0700
commit4b1bf5871f7d59de6484cc887e205d6d2f1e6fbd (patch)
tree892158a070e8897ef6a6101e740074ae6d5ad9eb /Documentation/power
parentMerge with upstream to accommodate with thermal changes (diff)
downloadlinux-dev-4b1bf5871f7d59de6484cc887e205d6d2f1e6fbd.tar.xz
linux-dev-4b1bf5871f7d59de6484cc887e205d6d2f1e6fbd.zip
thermal: Constify 'type' argument for the registration routine
thermal_zone_device_register() does not modify 'type' argument, so it is safe to declare it as const. Otherwise, if we pass a const string, we are getting the ugly warning: CC drivers/power/power_supply_core.o drivers/power/power_supply_core.c: In function 'psy_register_thermal': drivers/power/power_supply_core.c:204:6: warning: passing argument 1 of 'thermal_zone_device_register' discards 'const' qualifier from pointer target type [enabled by default] include/linux/thermal.h:140:29: note: expected 'char *' but argument is of type 'const char *' Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions