Commit fedae5ad authored by Axel Lin's avatar Axel Lin Committed by Matthew Garrett

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarBorislav Petkov <bp@alien8.de>
Acked-by: default avatarPeter Feuerer <peter@piie.net>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 3bf460f7
...@@ -92,9 +92,9 @@ static unsigned int fanstate = ACERHDF_FAN_AUTO; ...@@ -92,9 +92,9 @@ static unsigned int fanstate = ACERHDF_FAN_AUTO;
static char force_bios[16]; static char force_bios[16];
static char force_product[16]; static char force_product[16];
static unsigned int prev_interval; static unsigned int prev_interval;
struct thermal_zone_device *thz_dev; static struct thermal_zone_device *thz_dev;
struct thermal_cooling_device *cl_dev; static struct thermal_cooling_device *cl_dev;
struct platform_device *acerhdf_dev; static struct platform_device *acerhdf_dev;
module_param(kernelmode, uint, 0); module_param(kernelmode, uint, 0);
MODULE_PARM_DESC(kernelmode, "Kernel mode fan control on / off"); 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,7 +406,7 @@ static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal,
} }
/* bind callback functions to thermalzone */ /* bind callback functions to thermalzone */
struct thermal_zone_device_ops acerhdf_dev_ops = { static struct thermal_zone_device_ops acerhdf_dev_ops = {
.bind = acerhdf_bind, .bind = acerhdf_bind,
.unbind = acerhdf_unbind, .unbind = acerhdf_unbind,
.get_temp = acerhdf_get_ec_temp, .get_temp = acerhdf_get_ec_temp,
...@@ -481,7 +481,7 @@ static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev, ...@@ -481,7 +481,7 @@ static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev,
} }
/* bind fan callbacks to fan device */ /* bind fan callbacks to fan device */
struct thermal_cooling_device_ops acerhdf_cooling_ops = { static struct thermal_cooling_device_ops acerhdf_cooling_ops = {
.get_max_state = acerhdf_get_max_state, .get_max_state = acerhdf_get_max_state,
.get_cur_state = acerhdf_get_cur_state, .get_cur_state = acerhdf_get_cur_state,
.set_cur_state = acerhdf_set_cur_state, .set_cur_state = acerhdf_set_cur_state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment