diff options
author | Luca Tettamanti <kronos.it@gmail.com> | 2009-05-08 14:27:28 -0400 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-05-08 14:27:28 -0400 |
commit | b9008708f24de8fb9bdbfb5d3b27e36d5a357eda (patch) | |
tree | 0a5629d5da51ccf8d569e130cfa40216630ce471 | |
parent | 8c9ed899b44c19e81859fbb0e9d659fe2f8630fc (diff) |
hwmon: (asus_atk0110) Fix compiler warning
atk_sensor_type is only used when DEBUG is defined.
Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r-- | drivers/hwmon/asus_atk0110.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index 0897edef2574..bff0103610c1 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c | |||
@@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj) | |||
348 | return 0; | 348 | return 0; |
349 | } | 349 | } |
350 | 350 | ||
351 | #ifdef DEBUG | ||
351 | static char const *atk_sensor_type(union acpi_object *flags) | 352 | static char const *atk_sensor_type(union acpi_object *flags) |
352 | { | 353 | { |
353 | u64 type = flags->integer.value & ATK_TYPE_MASK; | 354 | u64 type = flags->integer.value & ATK_TYPE_MASK; |
@@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags) | |||
370 | 371 | ||
371 | return what; | 372 | return what; |
372 | } | 373 | } |
374 | #endif | ||
373 | 375 | ||
374 | static void atk_print_sensor(struct atk_data *data, union acpi_object *obj) | 376 | static void atk_print_sensor(struct atk_data *data, union acpi_object *obj) |
375 | { | 377 | { |