diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-07-20 18:19:43 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:48:59 -0400 |
commit | fedae5ad61fc213eda78d4905316eb50e35b6c8f (patch) | |
tree | 38ab1b8fbc89f39fd3c923b5c2d19b9a3ed63ed0 /drivers/platform | |
parent | 3bf460f7b2767df63b76257332c4a9a29d5733c1 (diff) |
acerhdf: make needlessly global symbols static
The following symbols are needlessly defined global:
thz_dev
cl_dev
acerhdf_dev
acerhdf_dev_ops
acerhdf_cooling_ops
This patch makes the symbols static.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Borislav Petkov <bp@alien8.de>
Acked-by: Peter Feuerer <peter@piie.net>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/acerhdf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index cfc0a5cd3c7d..4ce28d901b9a 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c | |||
@@ -92,9 +92,9 @@ static unsigned int fanstate = ACERHDF_FAN_AUTO; | |||
92 | static char force_bios[16]; | 92 | static char force_bios[16]; |
93 | static char force_product[16]; | 93 | static char force_product[16]; |
94 | static unsigned int prev_interval; | 94 | static unsigned int prev_interval; |
95 | struct thermal_zone_device *thz_dev; | 95 | static struct thermal_zone_device *thz_dev; |
96 | struct thermal_cooling_device *cl_dev; | 96 | static struct thermal_cooling_device *cl_dev; |
97 | struct platform_device *acerhdf_dev; | 97 | static struct platform_device *acerhdf_dev; |
98 | 98 | ||
99 | module_param(kernelmode, uint, 0); | 99 | module_param(kernelmode, uint, 0); |
100 | MODULE_PARM_DESC(kernelmode, "Kernel mode fan control on / off"); | 100 | MODULE_PARM_DESC(kernelmode, "Kernel mode fan control on / off"); |
@@ -406,7 +406,7 @@ static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal, | |||
406 | } | 406 | } |
407 | 407 | ||
408 | /* bind callback functions to thermalzone */ | 408 | /* bind callback functions to thermalzone */ |
409 | struct thermal_zone_device_ops acerhdf_dev_ops = { | 409 | static struct thermal_zone_device_ops acerhdf_dev_ops = { |
410 | .bind = acerhdf_bind, | 410 | .bind = acerhdf_bind, |
411 | .unbind = acerhdf_unbind, | 411 | .unbind = acerhdf_unbind, |
412 | .get_temp = acerhdf_get_ec_temp, | 412 | .get_temp = acerhdf_get_ec_temp, |
@@ -481,7 +481,7 @@ err_out: | |||
481 | } | 481 | } |
482 | 482 | ||
483 | /* bind fan callbacks to fan device */ | 483 | /* bind fan callbacks to fan device */ |
484 | struct thermal_cooling_device_ops acerhdf_cooling_ops = { | 484 | static struct thermal_cooling_device_ops acerhdf_cooling_ops = { |
485 | .get_max_state = acerhdf_get_max_state, | 485 | .get_max_state = acerhdf_get_max_state, |
486 | .get_cur_state = acerhdf_get_cur_state, | 486 | .get_cur_state = acerhdf_get_cur_state, |
487 | .set_cur_state = acerhdf_set_cur_state, | 487 | .set_cur_state = acerhdf_set_cur_state, |