Skip to content

Commit

Permalink
hwmon: (asus_atk0110) Fix compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luca Tettamanti authored and Jean Delvare committed May 8, 2009
1 parent 8c9ed89 commit b900870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hwmon/asus_atk0110.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj)
return 0;
}

#ifdef DEBUG
static char const *atk_sensor_type(union acpi_object *flags)
{
u64 type = flags->integer.value & ATK_TYPE_MASK;
Expand All @@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags)

return what;
}
#endif

static void atk_print_sensor(struct atk_data *data, union acpi_object *obj)
{
Expand Down

0 comments on commit b900870

Please sign in to comment.